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
This commit is contained in:
parent
872f9a498f
commit
075cf3d2e8
@ -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>
|
Wed Jun 8 22:22:24 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||||
|
|
||||||
* string.c: Revert previous commit (possibility of endless loop).
|
* string.c: Revert previous commit (possibility of endless loop).
|
||||||
|
2
string.c
2
string.c
@ -5837,7 +5837,7 @@ static void
|
|||||||
rb_str_ascii_casemap(VALUE source, OnigCaseFoldType *flags, rb_encoding *enc)
|
rb_str_ascii_casemap(VALUE source, OnigCaseFoldType *flags, rb_encoding *enc)
|
||||||
{
|
{
|
||||||
OnigUChar *source_current, *source_end;
|
OnigUChar *source_current, *source_end;
|
||||||
int old_length = RSTRING_LEN(source);
|
long old_length = RSTRING_LEN(source);
|
||||||
int length_or_invalid;
|
int length_or_invalid;
|
||||||
|
|
||||||
if (old_length == 0) return;
|
if (old_length == 0) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user