diff options
author | Peter Stephenson <pws@zsh.org> | 2015-09-21 14:39:21 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-09-21 14:42:22 +0100 |
commit | 8b84419f45298ee564bd6fa2b531c8991b2a1983 (patch) | |
tree | 7751501c719854d29d3dcc1f9bf0682eb0895f95 /Src | |
parent | 5476e011f16664e601092c1e94e3332efe80720f (diff) | |
download | zsh-8b84419f45298ee564bd6fa2b531c8991b2a1983.tar.gz zsh-8b84419f45298ee564bd6fa2b531c8991b2a1983.tar.xz zsh-8b84419f45298ee564bd6fa2b531c8991b2a1983.zip |
36577: supplement 36559 to using LONG_MAX for 64-bit long
Diffstat (limited to 'Src')
-rw-r--r-- | Src/zsh.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index b98fc5c43..dd0596116 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -39,9 +39,13 @@ typedef ZSH_64_BIT_TYPE zlong; #if defined(ZLONG_IS_LONG_LONG) && defined(LLONG_MAX) #define ZLONG_MAX LLONG_MAX #else +#ifdef ZLONG_IS_LONG_64 +#define ZLONG_MAX LONG_MAX +#else /* umm... */ #define ZLONG_MAX ((zlong)9223372036854775807) #endif +#endif #ifdef ZSH_64_BIT_UTYPE typedef ZSH_64_BIT_UTYPE zulong; #else |