about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-05-13 19:11:24 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-05-13 19:11:24 +0000
commitb5d4d3d9c16e8f5b692b0c1d9e8e254c6aa13028 (patch)
tree65148d9c3948dc2081268f1bb8cd91429620ea82
parentac1c48349664604fbaf5a69130be94ad0f472682 (diff)
downloadzsh-b5d4d3d9c16e8f5b692b0c1d9e8e254c6aa13028.tar.gz
zsh-b5d4d3d9c16e8f5b692b0c1d9e8e254c6aa13028.tar.xz
zsh-b5d4d3d9c16e8f5b692b0c1d9e8e254c6aa13028.zip
23433: fix shift for ZMAXTIMEOUT
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_main.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index af3b2bf3a..fb2a17ec6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-13  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* 23433: Src/Zle/zle_main.c: cast for ZMAXTIMEOUT was wrong
+	where sizeof(long) > sizeof(int).
+
 2007-05-10  Andrey Borzenkov <bor@zsh.org>
 
 	* 23409 with extra comment: Src/init.c, Src/utils.c: after ZLE
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 010167de6..9f71f692b 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -425,7 +425,7 @@ enum ztmouttp {
      * there's no general way to fix up if that's wrong.
      */
     ZTM_MAX
-#define	ZMAXTIMEOUT	((time_t)(1 << (sizeof(time_t)*8-11)))
+#define	ZMAXTIMEOUT	((time_t)1 << (sizeof(time_t)*8-11))
 };
 
 struct ztmout {