1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* insns.def (opt_case_dispatch): suppressed a warning.

* vm_insnhelper.c (opt_case_dispatch_i): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-08-13 07:31:23 +00:00
parent 117c384560
commit 72072e6343
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Thu Aug 13 16:31:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* insns.def (opt_case_dispatch): suppressed a warning.
* vm_insnhelper.c (opt_case_dispatch_i): ditto.
Thu Aug 13 16:20:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in, Makefile.in (MAKEDIRS): used MKDIR_P instead of

View file

@ -1247,7 +1247,7 @@ opt_case_dispatch
key, -1
};
st_foreach(RHASH_TBL(hash), opt_case_dispatch_i, &arg);
st_foreach(RHASH_TBL(hash), opt_case_dispatch_i, (st_data_t)&arg);
if (arg.label != -1) {
JUMP(arg.label);

View file

@ -1599,8 +1599,10 @@ struct opt_case_dispatch_i_arg {
};
static int
opt_case_dispatch_i(st_data_t key, st_data_t data, struct opt_case_dispatch_i_arg *arg)
opt_case_dispatch_i(st_data_t key, st_data_t data, void *p)
{
struct opt_case_dispatch_i_arg *arg = p;
if (RTEST(rb_funcall((VALUE)key, idEqq, 1, arg->obj))) {
arg->label = FIX2INT((VALUE)data);
return ST_STOP;