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

ruby-changes:40875

From: ko1 <ko1@a...>
Date: Tue, 8 Dec 2015 23:06:20 +0900 (JST)
Subject: [ruby-changes:40875] ko1:r52954 (trunk): * compile.c (iseq_ibf_dump): fix for clang type checker.

ko1	2015-12-08 23:06:13 +0900 (Tue, 08 Dec 2015)

  New Revision: 52954

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

  Log:
    * compile.c (iseq_ibf_dump): fix for clang type checker.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52953)
+++ ChangeLog	(revision 52954)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Dec  8 23:05:47 2015  Koichi Sasada  <ko1@a...>
+
+	* compile.c (iseq_ibf_dump): fix for clang type checker.
+
 Tue Dec  8 23:04:02 2015  Koichi Sasada  <ko1@a...>
 
 	* iseq.c (iseq_s_load): fix mysterious bug.
Index: compile.c
===================================================================
--- compile.c	(revision 52953)
+++ compile.c	(revision 52954)
@@ -8062,7 +8062,7 @@ iseq_ibf_dump(const rb_iseq_t *iseq, VAL https://github.com/ruby/ruby/blob/trunk/compile.c#L8062
 
     if (RTEST(opt)) {
 	VALUE opt_str = rb_check_string_type(opt);
-	header.extra_size = RSTRING_LEN(opt_str) + 1;
+	header.extra_size = (unsigned int)RSTRING_LEN(opt_str) + 1;
 	ibf_dump_write(&dump, RSTRING_PTR(opt_str), header.extra_size);
     }
     else {

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

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