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

vm_insnhelper.c: suppress warning

* vm_insnhelper.c (vm_callee_setup_keyword_arg): suppress
  -Wsign-compare warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-05-27 08:33:44 +00:00
parent 084df96eb1
commit 75b9218f25

View file

@ -1129,7 +1129,7 @@ vm_callee_setup_keyword_arg(const rb_iseq_t *iseq, int argc, VALUE *orig_argv, V
for (j = i; i < iseq->arg_keywords; i++) {
if (st_lookup(rb_hash_tbl_raw(keyword_hash), ID2SYM(iseq->arg_keyword_table[i]), 0)) j++;
}
if (RHASH_SIZE(keyword_hash) > j) {
if (RHASH_SIZE(keyword_hash) > (unsigned int)j) {
unknown_keyword_error(iseq, keyword_hash);
}
}