Changeset: fbb484d7ec3a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fbb484d7ec3a
Modified Files:
        monetdb5/modules/atoms/json.c
Branch: Jun2020
Log Message:

Fix Bug 6851


diffs (32 lines):

diff --git a/monetdb5/modules/atoms/json.c b/monetdb5/modules/atoms/json.c
--- a/monetdb5/modules/atoms/json.c
+++ b/monetdb5/modules/atoms/json.c
@@ -769,13 +769,13 @@ JSONstringParser(const char *j, const ch
 
 static bool
 JSONintegerParser(const char *j, const char **next) {
-  if (*j == '-')
-    j++;
+       if (*j == '-')
+               j++;
 
-  // skipblancs(j);
-  if (!isdigit((unsigned char)*j)) {
-    *next = j;
-    return false;
+       // skipblancs(j);
+       if (!isdigit((unsigned char)*j)) {
+               *next = j;
+               return false;
        }
 
        if (*j == '0') {
@@ -784,7 +784,7 @@ JSONintegerParser(const char *j, const c
        }
 
        for(; *j; j++)
-               if (!(isdigit((unsigned char) *j) && *j != '0'))
+               if (!(isdigit((unsigned char) *j)))
                        break;
        *next = j;
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to