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:
parent
05bd3fb222
commit
ad78cd5e87
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue