summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-20 10:57:40 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-20 22:05:27 +0900
commitf55212bce939f736559709a8cd16c409772389c8 (patch)
tree93e8bd23eb1317ccbc16faf685fb9a4138470f29 /ruby.c
parent1e66d3b8532539a53cf97bcca477d0a8b4b426bc (diff)
Move "special consts" so `Qundef` and `Qnil` differ just 1 bit
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6599
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 68da778ea6..640386fbda 100644
--- a/ruby.c
+++ b/ruby.c
@@ -64,6 +64,7 @@
#define singlebit_only_p(x) !((x) & ((x)-1))
STATIC_ASSERT(Qnil_1bit_from_Qfalse, singlebit_only_p(Qnil^Qfalse));
+STATIC_ASSERT(Qundef_1bit_from_Qnil, singlebit_only_p(Qundef^Qnil));
#ifndef MAXPATHLEN
# define MAXPATHLEN 1024