Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2011-03-24 18:44:55 +0000
committereutarass2011-03-24 18:44:55 +0000
commit327479b5006e353b41a2796e233678fa4695f4c0 (patch)
treed68c9a195e49ab0228748683f6c1f2293df2872d /framework/json.c
parent6ec679763f07c94ac282b4d8a3c863c3ea3ef4b9 (diff)
downloadorg.eclipse.tcf.agent-327479b5006e353b41a2796e233678fa4695f4c0.tar.gz
org.eclipse.tcf.agent-327479b5006e353b41a2796e233678fa4695f4c0.tar.xz
org.eclipse.tcf.agent-327479b5006e353b41a2796e233678fa4695f4c0.zip
Bug 340319: Patch to remove warning during compilation
Diffstat (limited to 'framework/json.c')
-rw-r--r--framework/json.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/json.c b/framework/json.c
index 842a61f2..9127fb5b 100644
--- a/framework/json.c
+++ b/framework/json.c
@@ -191,12 +191,12 @@ static unsigned read_esc_char(InputStream * inp, char * utf8) {
}
if (ch < 0x800) {
utf8[0] = (char)((ch >> 6) | 0xc0);
- utf8[1] = (char)(ch & 0x3f | 0x80);
+ utf8[1] = (char)((ch & 0x3f) | 0x80);
return 2;
}
utf8[0] = (char)((ch >> 12) | 0xe0);
- utf8[1] = (char)((ch >> 6) & 0x3f | 0x80);
- utf8[2] = (char)(ch & 0x3f | 0x80);
+ utf8[1] = (char)(((ch >> 6) & 0x3f) | 0x80);
+ utf8[2] = (char)((ch & 0x3f) | 0x80);
return 3;
}
@@ -804,7 +804,7 @@ static void skip_object(InputStream * inp) {
}
return;
}
- if (ch == '-' || ch >= '0' && ch <= '9') {
+ if (ch == '-' || (ch >= '0' && ch <= '9')) {
for (;;) {
ch = peek_stream(inp);
if ((ch < '0' || ch > '9') && ch != '.'

Back to the top