summaryrefslogtreecommitdiffstats
path: root/ruby.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-25 09:15:08 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-25 09:15:08 +0000
commita027f984ce151863e25fb72b3b27a55c56fa068e (patch)
tree02b5b0ea6c42aa4186fe5095141f8782076fea8e /ruby.h
parentfb897de4ec7cb844c4dc5f00a9c56038dc50351d (diff)
downloadruby-a027f984ce151863e25fb72b3b27a55c56fa068e.tar.gz
ruby-a027f984ce151863e25fb72b3b27a55c56fa068e.tar.xz
ruby-a027f984ce151863e25fb72b3b27a55c56fa068e.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.h b/ruby.h
index 09fb395ac..8f1fbf970 100644
--- a/ruby.h
+++ b/ruby.h
@@ -136,7 +136,7 @@ VALUE rb_uint2inum _((unsigned long));
#define Qnil 4
#define Qundef 6 /* undefined value for placeholder */
-#define RTEST(v) ((VALUE)(v) & ~Qnil)
+#define RTEST(v) (((VALUE)(v) & ~Qnil) != 0)
#define NIL_P(v) ((VALUE)(v) == Qnil)
#define CLASS_OF(v) rb_class_of((VALUE)(v))