diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-20 10:57:40 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-20 22:05:27 +0900 |
| commit | f55212bce939f736559709a8cd16c409772389c8 (patch) | |
| tree | 93e8bd23eb1317ccbc16faf685fb9a4138470f29 /ruby.c | |
| parent | 1e66d3b8532539a53cf97bcca477d0a8b4b426bc (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |
