diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-01-13 23:41:20 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-01-13 23:43:07 +0900 |
commit | 55335eab80d763fb11d621c041d23aaf8f4857c6 (patch) | |
tree | 44844e5ff6c78dbb543fe9b7c5409e3b1686c9bb /random.c | |
parent | 9ba2558b76e5b0d871132c38a85055c4746c34de (diff) |
Use STATIC_ASSERT
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -73,7 +73,7 @@ #include "ruby/random.h" #include "ruby/ractor.h" -typedef int int_must_be_32bit_at_least[sizeof(int) * CHAR_BIT < 32 ? -1 : 1]; +STATIC_ASSERT(int_must_be_32bit_at_least, sizeof(int) * CHAR_BIT >= 32); #include "missing/mt19937.c" |