From 7357e03aca365e1f584ea7a73f05a4d84dc52859 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 16 Dec 2025 17:52:03 +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 1b92e42e8..ea87bee4d 100644 --- a/src/fastcmp.h +++ b/src/fastcmp.h @@ -3,7 +3,7 @@ // 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