Browse Source

Fixed another new error in the JSON parser.

grunfink 5 tháng trước cách đây
mục cha
commit
6e756b22c4
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      xs_json.h

+ 1 - 2
xs_json.h

@@ -300,14 +300,13 @@ static xs_val *_xs_json_load_lexer(FILE *f, js_type *t)
                 else {
                     char cc = c;
                     v = xs_insert_m(v, offset, &cc, 1);
+                    offset++;
                 }
 
                 if (!xs_is_string(v)) {
                     *t = JS_ERROR;
                     break;
                 }
-
-                offset++;
             }
         }