diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | string.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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). @@ -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; |