projects
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c5a843
)
Fix a few more compilation issues
author
Petri Lehtinen
<petri@digip.org>
Tue, 6 Oct 2009 10:22:26 +0000
(13:22 +0300)
committer
Petri Lehtinen
<petri@digip.org>
Tue, 6 Oct 2009 10:22:27 +0000
(13:22 +0300)
These were left out from the previous commit.
src/load.c
patch
|
blob
|
history
diff --git
a/src/load.c
b/src/load.c
index
4134182
..
3f41795
100644
(file)
--- a/
src/load.c
+++ b/
src/load.c
@@
-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')