From de82f8f7e9ec48da5cb7dfa9ce7ec995bc7ff2a5 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Fri, 10 May 2024 17:58:50 +0100 Subject: [PATCH] Comment use of static variable as r/o cache --- src/strutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strutil.c b/src/strutil.c index 40b19daf..26110862 100644 --- a/src/strutil.c +++ b/src/strutil.c @@ -1167,7 +1167,7 @@ static size_t csubs(size_t w, unsigned char c1, unsigned char c2) { if(w < 8) w = 8; - static size_t wmat[128][128]; + static size_t wmat[128][128]; // Compute once, read-only cache if(!wmat[0][1]) // Initialize weight matrix for(size_t k1 = 0; k1 < 128; k1++) for(size_t k2 = 0; k2 < 128; k2++)