You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/01/20 23:20:40 UTC

incubator-mynewt-larva git commit: Fix build for cortex.

Repository: incubator-mynewt-larva
Updated Branches:
  refs/heads/master bacf3f12b -> 0fa4e7fed


Fix build for cortex.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/0fa4e7fe
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/0fa4e7fe
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/0fa4e7fe

Branch: refs/heads/master
Commit: 0fa4e7fed797c097491b399c2f3d1adbfcc32804
Parents: bacf3f1
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Jan 20 14:20:20 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Jan 20 14:20:20 2016 -0800

----------------------------------------------------------------------
 libs/json/src/json_decode.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/0fa4e7fe/libs/json/src/json_decode.c
----------------------------------------------------------------------
diff --git a/libs/json/src/json_decode.c b/libs/json/src/json_decode.c
index 87b98c4..9ea0574 100644
--- a/libs/json/src/json_decode.c
+++ b/libs/json/src/json_decode.c
@@ -500,7 +500,8 @@ json_read_array(struct json_buffer *jb, const struct json_array_t *arr)
     char *tp;
     int n, count;
 
-    for (c = jb->jb_read_next(jb); isspace(c); c = jb->jb_read_next(jb)) {
+    for (c = jb->jb_read_next(jb); isspace((unsigned char)c);
+         c = jb->jb_read_next(jb)) {
     }
 
     if (c != '[') {
@@ -510,7 +511,8 @@ json_read_array(struct json_buffer *jb, const struct json_array_t *arr)
     tp = arr->arr.strings.store;
     arrcount = 0;
 
-    for (c = jb->jb_read_next(jb); isspace(c); c = jb->jb_read_next(jb)) {
+    for (c = jb->jb_read_next(jb); isspace((unsigned char)c);
+         c = jb->jb_read_next(jb)) {
     }
 
     if (c == ']') {