Avoid type limits (#6435)

This commit is contained in:
Nobuyoshi Nakada 2022-09-26 09:21:05 +09:00 committed by GitHub
parent dc7d929e54
commit 1481e6828c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
Notes: git 2022-09-26 09:21:27 +09:00
Merged-By: k0kubun <takashikkbn@gmail.com>
1 changed files with 1 additions and 4 deletions

View File

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