From f55212bce939f736559709a8cd16c409772389c8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 20 Oct 2022 10:57:40 +0900 Subject: Move "special consts" so `Qundef` and `Qnil` differ just 1 bit --- ruby.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ruby.c') 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 -- cgit v1.2.3