summaryrefslogtreecommitdiff
path: root/random.c
diff options
Diffstat (limited to 'random.c')
-rw-r--r--random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.c b/random.c
index 5cd2d917a4..ab33600792 100644
--- a/random.c
+++ b/random.c
@@ -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"
close