Skip to content

Commit 981a9f6

Browse files
committed
toAscii: avoid dependency on _GNU_SOURCE
1 parent 1009657 commit 981a9f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: api/WCharacter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ inline bool isHexadecimalDigit(int c)
145145
// ASCII character set, by clearing the high-order bits.
146146
inline int toAscii(int c)
147147
{
148-
return toascii (c);
148+
return (c & 0x7f);
149149
}
150150

151151

0 commit comments

Comments
 (0)