diff --git a/cpp/src/strings/regex/regexec.cpp b/cpp/src/strings/regex/regexec.cpp index 1c0a6869a2c..febad651f69 100644 --- a/cpp/src/strings/regex/regexec.cpp +++ b/cpp/src/strings/regex/regexec.cpp @@ -130,7 +130,7 @@ void reprog_device::destroy() { delete this; } std::size_t reprog_device::working_memory_size(int32_t num_threads) const { - return compute_working_memory_size(insts_counts(), num_threads); + return compute_working_memory_size(num_threads, insts_counts()); } std::pair reprog_device::compute_strided_working_memory(