summary refs log tree commit diff
diff options
context:
space:
mode:
-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 {