View | Details | Raw Unified | Return to bug 216218
Collapse All | Expand All

(-)devel/ruby-qtruby/files/patch-src_qtruby.cpp (+13 lines)
Line 0 Link Here
1
Fix bogus pointer comparison.
2
3
--- src/qtruby.cpp.orig	2017-01-18 20:21:44 UTC
4
+++ src/qtruby.cpp
5
@@ -2094,7 +2094,7 @@ isObject(VALUE /*self*/, VALUE obj)
6
 {
7
     void * ptr = 0;
8
     ptr = value_to_ptr(obj);
9
-    return (ptr > 0 ? Qtrue : Qfalse);
10
+    return (ptr ? Qtrue : Qfalse);
11
 }
12
 
13
 static VALUE

Return to bug 216218