fix comparsion with wide/unwide characters
This commit is contained in:
parent
68547e1abf
commit
f7493e0de6
@ -57,6 +57,8 @@ cmp_atoms(Atom a1, Atom a2)
|
||||
|
||||
while (*s1 == *s2) {
|
||||
if (!*s1) return 0;
|
||||
s1++;
|
||||
s2++;
|
||||
}
|
||||
return *s1-*s2;
|
||||
}
|
||||
@ -67,6 +69,8 @@ cmp_atoms(Atom a1, Atom a2)
|
||||
|
||||
while (*s1 == *s2) {
|
||||
if (!*s1) return 0;
|
||||
s1++;
|
||||
s2++;
|
||||
}
|
||||
return *s1-*s2;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user