diff options
| author | Oliver Kiddle <opk@zsh.org> | 2022-12-16 23:22:33 +0100 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2022-12-16 23:28:10 +0100 |
| commit | a73c705b0c864a9ce042fca6e72e0c92d4ad8237 (patch) | |
| tree | 6ea60926217bfc66140a8f60bbc8c37f36396ea2 /Src/ztype.h | |
| parent | 51215: consume whole CSI sequences from the input (diff) | |
| download | zsh-a73c705b0c864a9ce042fca6e72e0c92d4ad8237.tar zsh-a73c705b0c864a9ce042fca6e72e0c92d4ad8237.tar.gz zsh-a73c705b0c864a9ce042fca6e72e0c92d4ad8237.tar.bz2 zsh-a73c705b0c864a9ce042fca6e72e0c92d4ad8237.tar.lz zsh-a73c705b0c864a9ce042fca6e72e0c92d4ad8237.tar.xz zsh-a73c705b0c864a9ce042fca6e72e0c92d4ad8237.tar.zst zsh-a73c705b0c864a9ce042fca6e72e0c92d4ad8237.zip | |
51212: remove STOUC() macro
This served as a workaround for ancient compilers where casts to
unsigned char were broken.
Diffstat (limited to 'Src/ztype.h')
| -rw-r--r-- | Src/ztype.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/ztype.h b/Src/ztype.h index 5c85b0cd7..8757fc733 100644 --- a/Src/ztype.h +++ b/Src/ztype.h @@ -43,7 +43,7 @@ #define IWSEP (1 << 13) #define INULL (1 << 14) #define IPATTERN (1 << 15) -#define zistype(X,Y) (typtab[STOUC(X)] & Y) +#define zistype(X,Y) (typtab[(unsigned char) (X)] & Y) #define idigit(X) zistype(X,IDIGIT) #define ialnum(X) zistype(X,IALNUM) #define iblank(X) zistype(X,IBLANK) /* blank, not including \n */ |
