diff options
author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-09-19 23:08:46 +0100 |
---|---|---|
committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2015-09-19 23:08:46 +0100 |
commit | df0d86b847fbf5bd1ad383531cd52b261dc07717 (patch) | |
tree | 1b0e356cac173e6c56f25af74a80cc85e9c13e6e /Src/zsh.h | |
parent | cc44b10da1bcc4af87fb7bb0336177a31798608e (diff) | |
download | zsh-df0d86b847fbf5bd1ad383531cd52b261dc07717.tar.gz zsh-df0d86b847fbf5bd1ad383531cd52b261dc07717.tar.xz zsh-df0d86b847fbf5bd1ad383531cd52b261dc07717.zip |
36559: test earlier for overflow in pattern range
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index 4e2cb656e..9c7e5d9dc 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -36,6 +36,12 @@ */ #ifdef ZSH_64_BIT_TYPE typedef ZSH_64_BIT_TYPE zlong; +#if defind(ZLONG_IS_LONG_LONG) && defined(LLONG_MAX) +#define ZLONG_MAX LLONG_MAX +#else +/* umm... */ +#define ZLONG_MAX ((zlong)9223372036854775807) +#endif #ifdef ZSH_64_BIT_UTYPE typedef ZSH_64_BIT_UTYPE zulong; #else @@ -44,6 +50,7 @@ typedef unsigned zlong zulong; #else typedef long zlong; typedef unsigned long zulong; +#define ZLONG_MAX LONG_MAX #endif /* |