summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-08 14:11:17 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-08 14:11:17 +0000
commit075cf3d2e85729143f7698303e5dc898c516eafa (patch)
tree9d8667aa1002540e2a9a079829877053e9ef0449
parent872f9a498fb5ec52eb54b8ee1f546b0d50817779 (diff)
string.c (rb_str_ascii_casemap): fix compile error.
error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--string.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 75f3be9..ef333bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jun 8 23:09:51 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * string.c (rb_str_ascii_casemap): fix compile error.
+
Wed Jun 8 22:22:24 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
* string.c: Revert previous commit (possibility of endless loop).
diff --git a/string.c b/string.c
index e1cedf4..776a4d3 100644
--- a/string.c
+++ b/string.c
@@ -5837,7 +5837,7 @@ static void
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;