diff options
author | François Andriot <francois.andriot@free.fr> | 2021-05-10 20:45:41 +0200 |
---|---|---|
committer | François Andriot <francois.andriot@free.fr> | 2021-05-10 20:45:41 +0200 |
commit | 817f960e8ecca5074171cfc8267dcebbb1a7f514 (patch) | |
tree | ee3642364c66ddf260011b2f0f5a37369f6e841e /qtruby/rubylib | |
parent | 6458e39cdc9ee47d5aa26f032de1dc9417c2b15e (diff) | |
download | tdebindings-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>
Diffstat (limited to 'qtruby/rubylib')
-rw-r--r-- | qtruby/rubylib/qtruby/Qt.cpp | 2 |
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 |