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

ruby-changes:32342

From: nobu <ko1@a...>
Date: Wed, 25 Dec 2013 23:02:27 +0900 (JST)
Subject: [ruby-changes:32342] nobu:r44421 (trunk): compile.c: fix error by clang

nobu	2013-12-25 23:02:18 +0900 (Wed, 25 Dec 2013)

  New Revision: 44421

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

  Log:
    compile.c: fix error by clang
    
    * compile.c (iseq_set_arguments): get rid of error by clang,
      implicit conversion to shorter integer.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 44420)
+++ compile.c	(revision 44421)
@@ -1203,7 +1203,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK https://github.com/ruby/ruby/blob/trunk/compile.c#L1203
 		node = node->nd_next;
 		i += 1;
 	    }
-	    iseq->arg_keyword_check = args->kw_rest_arg->nd_cflag;
+	    iseq->arg_keyword_check = args->kw_rest_arg->nd_cflag != 0;
 	    iseq->arg_keywords = i;
 	    iseq->arg_keyword_required = r;
 	    iseq->arg_keyword_table = ALLOC_N(ID, i);

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

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