mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use ~0U instead of ~0 to avoid sign comparison warnings.
This commit is contained in:
@@ -4776,7 +4776,7 @@ parse_string(parser_state *p)
|
||||
pylval.nd = nd;
|
||||
if (unindent && head) {
|
||||
hinf->indented = push(hinf->indented, cons(nd->cdr, escaped));
|
||||
if ((hinf->indent == ~0 || spaces < hinf->indent) && (!empty || !line_head))
|
||||
if ((hinf->indent == ~0U || spaces < hinf->indent) && (!empty || !line_head))
|
||||
hinf->indent = spaces;
|
||||
}
|
||||
return tHD_STRING_MID;
|
||||
@@ -4868,7 +4868,7 @@ parse_string(parser_state *p)
|
||||
if (hinf) {
|
||||
if (unindent && head) {
|
||||
hinf->indented = push(hinf->indented, cons(nd->cdr, escaped));
|
||||
if (hinf->indent == ~0 || spaces < hinf->indent)
|
||||
if (hinf->indent == ~0U || spaces < hinf->indent)
|
||||
hinf->indent = spaces;
|
||||
}
|
||||
hinf->line_head = FALSE;
|
||||
@@ -5087,7 +5087,7 @@ heredoc_identifier(parser_state *p)
|
||||
info->type = (string_type)type;
|
||||
info->allow_indent = indent || squiggly;
|
||||
info->remove_indent = squiggly;
|
||||
info->indent = ~0;
|
||||
info->indent = ~0U;
|
||||
info->indented = NULL;
|
||||
info->line_head = TRUE;
|
||||
info->doc = NULL;
|
||||
|
||||
@@ -10777,7 +10777,7 @@ parse_string(parser_state *p)
|
||||
pylval.nd = nd;
|
||||
if (unindent && head) {
|
||||
hinf->indented = push(hinf->indented, cons(nd->cdr, escaped));
|
||||
if ((hinf->indent == ~0 || spaces < hinf->indent) && (!empty || !line_head))
|
||||
if ((hinf->indent == ~0U || spaces < hinf->indent) && (!empty || !line_head))
|
||||
hinf->indent = spaces;
|
||||
}
|
||||
return tHD_STRING_MID;
|
||||
@@ -10869,7 +10869,7 @@ parse_string(parser_state *p)
|
||||
if (hinf) {
|
||||
if (unindent && head) {
|
||||
hinf->indented = push(hinf->indented, cons(nd->cdr, escaped));
|
||||
if (hinf->indent == ~0 || spaces < hinf->indent)
|
||||
if (hinf->indent == ~0U || spaces < hinf->indent)
|
||||
hinf->indent = spaces;
|
||||
}
|
||||
hinf->line_head = FALSE;
|
||||
@@ -11088,7 +11088,7 @@ heredoc_identifier(parser_state *p)
|
||||
info->type = (string_type)type;
|
||||
info->allow_indent = indent || squiggly;
|
||||
info->remove_indent = squiggly;
|
||||
info->indent = ~0;
|
||||
info->indent = ~0U;
|
||||
info->indented = NULL;
|
||||
info->line_head = TRUE;
|
||||
info->doc = NULL;
|
||||
|
||||
Reference in New Issue
Block a user