summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-27 08:33:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-27 08:33:44 +0000
commit75b9218f25f4f63bf23fdc118eb40c5d712684ee (patch)
tree4d2830ff39b4c10530da55c89f99bc070ac4502b
parent084df96eb1d76a41c0e1eb5c7cd9ed26eee43a23 (diff)
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
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 88def22938..8f33425b56 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -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);
}
}