From ad78cd5e87216c70534af4df79b6ddacdd8b05c4 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 16 Dec 2025 17:50:43 +0100 Subject: [PATCH] Remove pure attribute from fasticmp While i assume this to be fine currently, i quite frankly dont trust the srb2 codebase enough aswell as preventing any future issues if there should ever be need to switch locales, since toupper WILL change behaviour in such cases which does not qualify as pure --- src/fastcmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastcmp.h b/src/fastcmp.h index 91ac07211..e2d53710e 100644 --- a/src/fastcmp.h +++ b/src/fastcmp.h @@ -7,7 +7,7 @@ extern "C" { // returns false if s != c // returns true if s == c -FUNCINLINE static ATTRINLINE PUREFUNC boolean fasticmp(const char *s, const char *c) +FUNCINLINE static ATTRINLINE boolean fasticmp(const char *s, const char *c) { for (; *s && toupper(*s) == toupper(*c); s++, c++) ; return (*s == *c); // make sure both strings ended