diff options
author | François Andriot <francois.andriot@free.fr> | 2021-05-10 20:45:41 +0200 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-05-11 09:10:41 +0900 |
commit | 49f44e4520f45da9bb55e2345ba9ea1ae58ef7d7 (patch) | |
tree | c6bf2e63f084c461944e089ab50c4b4ba9bea0b7 | |
parent | 7478dfdd7388ade56bfbfe7bac5862a4937eef26 (diff) | |
download | tdebindings-49f44e4520f45da9bb55e2345ba9ea1ae58ef7d7.tar.gz tdebindings-49f44e4520f45da9bb55e2345ba9ea1ae58ef7d7.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>
(cherry picked from commit 817f960e8ecca5074171cfc8267dcebbb1a7f514)
-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 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 |