diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-08 14:11:17 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-08 14:11:17 +0000 |
commit | 6239c210d56856ac7c319e269818d4ad05545492 (patch) | |
tree | 9d8667aa1002540e2a9a079829877053e9ef0449 /string.c | |
parent | 33cb0b5aa928fa67a6e7eac91ada470e90b737c6 (diff) | |
download | ruby-6239c210d56856ac7c319e269818d4ad05545492.tar.gz |
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
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |