about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/system.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4672641fd..db1ac681d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-06-25  Oliver Kiddle  <opk@zsh.org>
 
+	* 18634: Tomi Vainio: Src/system.h: work around problem with
+	latest Sun k2 compiler mistaking an array as variable length
+
 	* 18631: Completion/AIX/Command/_smit,
 	Completion/Linux/Command/_modutils, Completion/Linux/Command/_uml,
 	Completion/Unix/Command/_ant, Completion/Unix/Command/_arp,
diff --git a/Src/system.h b/Src/system.h
index c9e1a5a27..d7372924b 100644
--- a/Src/system.h
+++ b/Src/system.h
@@ -418,7 +418,7 @@ struct timezone {
  * converted to printable decimal form including the sign and the     *
  * terminating null character. Below 0.30103 > lg 2.                  *
  * BDIGBUFSIZE is for a number converted to printable binary form.    */
-#define DIGBUFSIZE ((int)(((sizeof(zlong) * 8) - 1) * 0.30103) + 3)
+#define DIGBUFSIZE ((int)(((sizeof(zlong) * 8) - 1) * 30103/100000) + 3)
 #define BDIGBUFSIZE ((int)((sizeof(zlong) * 8) + 4))
 
 /* If your stat macros are broken, we will *