diff options
-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 |