summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2021-05-10 20:45:41 +0200
committerFrançois Andriot <francois.andriot@free.fr>2021-05-10 20:45:41 +0200
commit817f960e8ecca5074171cfc8267dcebbb1a7f514 (patch)
treeee3642364c66ddf260011b2f0f5a37369f6e841e
parent6458e39cdc9ee47d5aa26f032de1dc9417c2b15e (diff)
downloadtdebindings-817f960e8ecca5074171cfc8267dcebbb1a7f514.tar.gz
tdebindings-817f960e8ecca5074171cfc8267dcebbb1a7f514.zip
Fix FTBFS on Fedora 34
Qt.cpp:2643:17: error: ordered comparison of pointer with integer zero ('void*' and 'int') Signed-off-by: François Andriot <francois.andriot@free.fr>
-rw-r--r--qtruby/rubylib/qtruby/Qt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtruby/rubylib/qtruby/Qt.cpp b/qtruby/rubylib/qtruby/Qt.cpp
index 834cc3b2..abb44588 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