[前][次][番号順一覧][スレッド一覧]

ruby-changes:28903

From: nobu <ko1@a...>
Date: Mon, 27 May 2013 17:33:54 +0900 (JST)
Subject: [ruby-changes:28903] nobu:r40955 (trunk): vm_insnhelper.c: suppress warning

nobu	2013-05-27 17:33:44 +0900 (Mon, 27 May 2013)

  New Revision: 40955

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40955

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

  Modified files:
    trunk/vm_insnhelper.c

Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 40954)
+++ vm_insnhelper.c	(revision 40955)
@@ -1129,7 +1129,7 @@ vm_callee_setup_keyword_arg(const rb_ise https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L1129
 	    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);
 	    }
 	}

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]