From 1481e6828ccbd42efe8c1a92620b2942fc089790 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 26 Sep 2022 09:21:05 +0900 Subject: Avoid type limits (#6435) --- mjit_compiler.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mjit_compiler.c') diff --git a/mjit_compiler.c b/mjit_compiler.c index 82be9e7735..1982ad925c 100644 --- a/mjit_compiler.c +++ b/mjit_compiler.c @@ -169,12 +169,9 @@ extern bool rb_splat_or_kwargs_p(const struct rb_callinfo *restrict ci); #define OFFSETOF(ptr, member) RB_SIZE2NUM(((char *)&ptr.member - (char*)&ptr) * 8) #define SIZEOF(type) RB_SIZE2NUM(sizeof(type)) -#define SIGNED_TYPE_P(type) RBOOL((type)(-1) < (type)(0)) +#define SIGNED_TYPE_P(type) RBOOL((type)(-1) < (type)(1)) -RBIMPL_WARNING_PUSH() -RBIMPL_WARNING_IGNORED(-Wtype-limits) // for SIGNED_TYPE_P #include "mjit_c.rbinc" -RBIMPL_WARNING_POP() #include "mjit_compiler.rbinc" -- cgit v1.2.3