mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Avoid type limits (#6435)
This commit is contained in:
parent
dc7d929e54
commit
1481e6828c
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
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue