Skip to content

Commit 773883c

Browse files
ukabuerlemire
authored andcommitted
1 parent 6e5e027 commit 773883c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/simdjson/parsedjsoniterator.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_key(const char *key) {
331331
return true;
332332
}
333333
} while (next());
334+
up();
334335
}
335336
return false;
336337
}
@@ -346,6 +347,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_key_insensitive(
346347
return true;
347348
}
348349
} while (next());
350+
up();
349351
}
350352
return false;
351353
}
@@ -362,6 +364,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_key(const char *key,
362364
return true;
363365
}
364366
} while (next());
367+
up();
365368
}
366369
return false;
367370
}
@@ -378,6 +381,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_index(uint32_t index) {
378381
if (i == index) {
379382
return true;
380383
}
384+
up();
381385
}
382386
return false;
383387
}

singleheader/simdjson.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_key(const char *key) {
12461246
return true;
12471247
}
12481248
} while (next());
1249+
up();
12491250
}
12501251
return false;
12511252
}
@@ -1261,6 +1262,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_key_insensitive(
12611262
return true;
12621263
}
12631264
} while (next());
1265+
up();
12641266
}
12651267
return false;
12661268
}
@@ -1277,6 +1279,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_key(const char *key,
12771279
return true;
12781280
}
12791281
} while (next());
1282+
up();
12801283
}
12811284
return false;
12821285
}
@@ -1293,6 +1296,7 @@ bool ParsedJson::BasicIterator<max_depth>::move_to_index(uint32_t index) {
12931296
if (i == index) {
12941297
return true;
12951298
}
1299+
up();
12961300
}
12971301
return false;
12981302
}

0 commit comments

Comments
 (0)