瀏覽代碼

Avoid isascii() & toascii()

main
PaulStoffregen 4 年之前
父節點
當前提交
a8046bbbad
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      teensy4/WCharacter.h

+ 2
- 2
teensy4/WCharacter.h 查看文件

@@ -61,7 +61,7 @@ inline boolean isAlpha(int c)
// that fits into the ASCII character set.
inline boolean isAscii(int c)
{
return ( isascii (c) == 0 ? false : true);
return ((c & ~0x7F) != 0 ? false : true);
}


@@ -143,7 +143,7 @@ inline boolean isHexadecimalDigit(int c)
// ASCII character set, by clearing the high-order bits.
inline int toAscii(int c)
{
return toascii (c);
return (c & 0x7F);
}



Loading…
取消
儲存