From 9ee4c07964bd087a1e472ed241778ccd2576b1b5 Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Sat, 11 May 2024 23:13:45 +0300 Subject: [PATCH] Fix false positive duplicateAssignExpression warnings --- src/scratch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scratch.c b/src/scratch.c index 9f6d77cd..aa15547b 100644 --- a/src/scratch.c +++ b/src/scratch.c @@ -83,9 +83,9 @@ hs_error_t alloc_scratch(const hs_scratch_t *proto, hs_scratch_t **scratch) { u32 anchored_literal_fatbit_size = proto->anchored_literal_fatbit_size; u32 som_store_size = proto->som_store_count * sizeof(u64a); - u32 som_attempted_store_size = proto->som_store_count * sizeof(u64a); + u32 som_attempted_store_size = som_store_size; // Same as som_store_size u32 som_now_size = proto->som_fatbit_size; - u32 som_attempted_size = proto->som_fatbit_size; + u32 som_attempted_size = som_now_size; // Same as som_now_size struct hs_scratch *s; struct hs_scratch *s_tmp;