diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-09-26 09:21:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 09:21:05 +0900 |
commit | 1481e6828ccbd42efe8c1a92620b2942fc089790 (patch) | |
tree | 71df4674a5f32314bb32b8329c30fddbdffd10ec | |
parent | dc7d929e542a3372113f7864b26384ceab596197 (diff) |
Avoid type limits (#6435)
Notes
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
-rw-r--r-- | mjit_compiler.c | 5 |
1 files changed, 1 insertions, 4 deletions
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" |