Fix error in initial noodle double final call.

Change-Id: Ie044988f183b47e0b2f1eed3b4bd23de75c3117d
This commit is contained in:
George Wort
2021-06-22 12:34:35 +01:00
committed by Konstantinos Margaritis
parent 736286c2f3
commit db26cdd4bf
2 changed files with 2 additions and 2 deletions

View File

@@ -245,7 +245,7 @@ hwlm_error_t scanDouble(const struct noodTable *n, const u8 *buf, size_t len,
// Check first position in scalar so as to remove underflow possibilities.
size_t matchPos = d - buf;
DEBUG_PRINTF("Test match pos %zu\n", matchPos);
RETURN_IF_TERMINATED(final(n, d, len, true, cbi, matchPos));
RETURN_IF_TERMINATED(final(n, buf, len, true, cbi, matchPos));
d += 2;
if (d >= e) {
return HWLM_SUCCESS;