diff options
author | Petri Lehtinen <petri@digip.org> | 2009-10-06 13:22:26 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2009-10-06 13:22:27 +0300 |
commit | 19588c2d694b85aa99c864a5f7abe316e46ab548 (patch) | |
tree | 116d3703a0303b5c4f92f320350adf6f1e217055 | |
parent | 9c5a8430dbb05f5308ab19fbd0a26d92483b7118 (diff) | |
download | jansson-19588c2d694b85aa99c864a5f7abe316e46ab548.zip jansson-19588c2d694b85aa99c864a5f7abe316e46ab548.tar.gz jansson-19588c2d694b85aa99c864a5f7abe316e46ab548.tar.bz2 |
Fix a few more compilation issues
These were left out from the previous commit.
-rw-r--r-- | src/load.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -258,14 +258,14 @@ static void lex_scan_string(lex_t *lex, json_error_t *error) c = lex_get_save(lex, error); while(c != '"') { - if(c == EOF) { + if(c == (char)EOF) { lex_unget_unsave(lex, c); if(lex_eof(lex)) error_set(error, lex, "premature end of input"); goto out; } - else if(0 <= c && c <= 0x1F) { + else if((unsigned char)c <= 0x1F) { /* control character */ lex_unget_unsave(lex, c); if(c == '\n') |