From 8927a0561f7ef7e5b1830cb2b19f8418b27cbbfd Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Thu, 14 May 2020 20:39:44 -0400 Subject: [PATCH] Obvious fix. (#885) --- benchmark/minifiercompetition.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/minifiercompetition.cpp b/benchmark/minifiercompetition.cpp index ad6a8842..c2b178dd 100644 --- a/benchmark/minifiercompetition.cpp +++ b/benchmark/minifiercompetition.cpp @@ -107,7 +107,7 @@ int main(int argc, char *argv[]) { size_t outlength; uint8_t *cbuffer = (uint8_t *)buffer; for (auto imple : simdjson::available_implementations) { - BEST_TIME((std::string("simdjson->minify+")+imple->name()).c_str(), (imple->minify(cbuffer, p.size(), cbuffer, outlength) ? outlength : -1), + BEST_TIME((std::string("simdjson->minify+")+imple->name()).c_str(), (imple->minify(cbuffer, p.size(), cbuffer, outlength) == simdjson::SUCCESS ? outlength : -1), outlength, memcpy(buffer, p.data(), p.size()), repeat, volume, !just_data); }