From a3a9d136aa4835eb50f4be92fbbce1ad503ec4c7 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Tue, 15 May 2012 18:59:25 +0900 Subject: remove "comparison is always true" warning --- include/mruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3