Use STATIC_ASSERT

This commit is contained in:
Nobuyoshi Nakada 2024-01-13 23:41:20 +09:00
parent 9ba2558b76
commit 55335eab80
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -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"