diff options
-rw-r--r-- | io.c | 2 | ||||
-rw-r--r-- | parse.y | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -7456,7 +7456,7 @@ rb_io_ctl(VALUE io, VALUE req, VALUE arg, int io_p) rb_str_resize(arg, len+1); } RSTRING_PTR(arg)[len] = 17; /* a little sanity check here */ - narg = (long)RSTRING_PTR(arg); + narg = (long)(SIGNED_VALUE)RSTRING_PTR(arg); } } GetOpenFile(io, fptr); @@ -8921,7 +8921,7 @@ new_args_gen(struct parser_params *parser, NODE *m, NODE *o, ID r, NODE *p, ID b } #endif /* !RIPPER */ -#define LVAR_USED (1UL << (sizeof(ID) * CHAR_BIT - 1)) +#define LVAR_USED ((ID)1 << (sizeof(ID) * CHAR_BIT - 1)) static void warn_unused_var(struct parser_params *parser, struct local_vars *local) |