Skip to content

Commit d5af359

Browse files
authored
Fix compile error in master (simdjson#619)
1 parent 8769e42 commit d5af359

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

benchmark/parsingcompetition.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ bool bench(const char *filename, bool verbose, bool just_data, int repeat_multip
237237
std::fill(stats.begin(), stats.end(), 0); // unnecessary
238238
for (int i = 0; i < repeat; i++) {
239239
unified.start();
240-
if (json_parse(p, pj) != simdjson::SUCCESS)
240+
auto [doc, error] = parser.parse(p);
241+
if (error)
241242
printf("bug\n");
242243
unified.end(results);
243244
std::transform(stats.begin(), stats.end(), results.begin(), stats.begin(),

0 commit comments

Comments
 (0)