summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-15 18:59:25 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-15 18:59:25 +0900
commita3a9d136aa4835eb50f4be92fbbce1ad503ec4c7 (patch)
tree77e5aae2fd4a3dc22a1fc86be1c4e3df8a489b42 /include
parentbd839684e5f6b2810db7c04a015911cfde9aa243 (diff)
downloadmruby-a3a9d136aa4835eb50f4be92fbbce1ad503ec4c7.tar.gz
mruby-a3a9d136aa4835eb50f4be92fbbce1ad503ec4c7.zip
remove "comparison is always true" warning
Diffstat (limited to 'include')
-rw-r--r--include/mruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 408623e00..7a46992ee 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -83,7 +83,7 @@ typedef struct mrb_value {
#include "mruby/object.h"
-#define IMMEDIATE_P(x) ((mrb_type(x) >= MRB_TT_FALSE) && (mrb_type(x) <= MRB_TT_FLOAT))
+#define IMMEDIATE_P(x) (mrb_type(x) <= MRB_TT_FLOAT)
#define SPECIAL_CONST_P(x) IMMEDIATE_P(x)
#define SYMBOL_P(o) (mrb_type(o) == MRB_TT_SYMBOL)
#define RTEST(o) mrb_test(o)