--- src/qtruby.cpp.orig 2013-06-02 05:39:23.000000000 +0800 +++ src/qtruby.cpp 2023-07-29 04:56:39.000000000 +0800 @@ -2094,7 +2094,7 @@ { void * ptr = 0; ptr = value_to_ptr(obj); - return (ptr > 0 ? Qtrue : Qfalse); + return (ptr != 0 ? Qtrue : Qfalse); } static VALUE