Ported to NetBSD (2/2): Add casts for character class detection

NetBSD's character class test macros are defined such that they produce
a compiler warning when given a char argument. Adding a cast to the call
fixes this.
This commit is contained in:
TQ Hirsch 2014-03-13 17:56:01 +00:00
parent 426a3f8468
commit 849178d60b
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ static HParseResult* parse_whitespace(void* env, HParseState *state) {
c = h_read_bits(&state->input_stream, 8, false);
if (state->input_stream.overrun)
break;
} while (isspace(c));
} while (isspace((int)c));
state->input_stream = bak;
return h_do_parse((HParser*)env, state);
}