Revert "Fix comparisons in str_squeeze."

This reverts commit 7b04fcd0.
The issue was addressed by 9e3cbaaa. No longer needed.
parent 9e3cbaaa
......@@ -546,7 +546,7 @@ str_squeeze(mrb_state *mrb, mrb_value str, mrb_value v_pat)
{
struct tr_pattern *pat = NULL;
mrb_int i, j;
unsigned char *s;
char *s;
mrb_int len;
mrb_bool flag_changed = FALSE;
mrb_int lastch = -1;
......@@ -555,7 +555,7 @@ str_squeeze(mrb_state *mrb, mrb_value str, mrb_value v_pat)
if (!mrb_nil_p(v_pat)) {
pat = tr_parse_pattern(mrb, pat, v_pat, TRUE);
}
s = (unsigned char *)RSTRING_PTR(str);
s = RSTRING_PTR(str);
len = RSTRING_LEN(str);
if (pat) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment