From 55335eab80d763fb11d621c041d23aaf8f4857c6 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 13 Jan 2024 23:41:20 +0900 Subject: [PATCH] Use STATIC_ASSERT --- random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"