From 49f44e4520f45da9bb55e2345ba9ea1ae58ef7d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Mon, 10 May 2021 20:45:41 +0200 Subject: [PATCH] Fix FTBFS on Fedora 34 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Qt.cpp:2643:17: error: ordered comparison of pointer with integer zero ('void*' and 'int') Signed-off-by: François Andriot (cherry picked from commit 817f960e8ecca5074171cfc8267dcebbb1a7f514) --- qtruby/rubylib/qtruby/Qt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtruby/rubylib/qtruby/Qt.cpp b/qtruby/rubylib/qtruby/Qt.cpp index 715110f2..de1ee3d1 100644 --- a/qtruby/rubylib/qtruby/Qt.cpp +++ b/qtruby/rubylib/qtruby/Qt.cpp @@ -2640,7 +2640,7 @@ isObject(VALUE /*self*/, VALUE obj) { void * ptr = 0; ptr = value_to_ptr(obj); - return (ptr > 0 ? Qtrue : Qfalse); + return (ptr != 0 ? Qtrue : Qfalse); } static VALUE