summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-03 11:47:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-03 11:47:34 +0000
commitdb0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c (patch)
tree08356791239f2f723b7c8092d372ac00e5fa9d2e
parent68b0f9d47f1dcbc873f5739e3345d88c78a59cc6 (diff)
downloadruby-db0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c.tar.gz
ruby-db0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c.tar.xz
ruby-db0d5fcaadf939aeeb3038ffc8e5b1b1e25c120c.zip
* ruby.h (SYMBOL_P): Qnil and Qfalse are not Symbol.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--ruby.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 49b0d11c3..547c29252 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Sep 3 20:47:02 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.h (SYMBOL_P): Qnil and Qfalse are not Symbol.
+
Sun Sep 3 15:32:44 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb: get rid of nil.to_s.
diff --git a/ruby.h b/ruby.h
index c6cf32186..df0ae75e9 100644
--- a/ruby.h
+++ b/ruby.h
@@ -195,7 +195,7 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
#define IMMEDIATE_MASK 0x03
#define IMMEDIATE_P(x) ((VALUE)(x) & IMMEDIATE_MASK)
-#define SYMBOL_P(x) (!IMMEDIATE_P(x) && RBASIC(x)->klass == rb_cSymbol)
+#define SYMBOL_P(x) (!SPECIAL_CONST_P(x) && RBASIC(x)->klass == rb_cSymbol)
VALUE rb_id2sym(ID);
ID rb_sym2id(VALUE);
#define ID2SYM(x) rb_id2sym(x)