Updating parsingcompetition to the new API.

This commit is contained in:
Daniel Lemire 2019-05-24 19:28:21 -04:00
parent 8526387acb
commit 2c7a9734af
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ int main(int argc, char *argv[]) {
std::fill(stats.begin(), stats.end(), 0);// unnecessary
for(int i = 0; i < repeat; i++) {
unified.start();
if(json_parse(p, pj) != true) printf("bug\n");
if(json_parse(p, pj) != simdjson::SUCCESS) printf("bug\n");
unified.end(results);
std::transform (stats.begin(), stats.end(), results.begin(), stats.begin(), std::plus<unsigned long long>());
}