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

ruby-changes:43258

From: kazu <ko1@a...>
Date: Wed, 8 Jun 2016 23:11:21 +0900 (JST)
Subject: [ruby-changes:43258] kazu:r55332 (trunk): string.c (rb_str_ascii_casemap): fix compile error.

kazu	2016-06-08 23:11:17 +0900 (Wed, 08 Jun 2016)

  New Revision: 55332

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

  Log:
    string.c (rb_str_ascii_casemap): fix compile error.
    
    error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]

  Modified files:
    trunk/ChangeLog
    trunk/string.c
Index: string.c
===================================================================
--- string.c	(revision 55331)
+++ string.c	(revision 55332)
@@ -5837,7 +5837,7 @@ static void https://github.com/ruby/ruby/blob/trunk/string.c#L5837
 rb_str_ascii_casemap(VALUE source, OnigCaseFoldType *flags, rb_encoding *enc)
 {
     OnigUChar *source_current, *source_end;
-    int old_length = RSTRING_LEN(source);
+    long old_length = RSTRING_LEN(source);
     int length_or_invalid;
 
     if (old_length == 0) return;
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55331)
+++ ChangeLog	(revision 55332)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jun  8 23:09:51 2016  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* string.c (rb_str_ascii_casemap): fix compile error.
+
 Wed Jun  8 22:22:24 2016  Martin Duerst  <duerst@i...>
 
 	* string.c: Revert previous commit (possibility of endless loop).

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

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