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
This commit is contained in:
Alug committed 2025-12-16 17:52:03 +01:00
1 parent 8cf36252c0
commit 7357e03aca
1 file changed
+1 -1
+1 -1
View File
@@ -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