summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-06-25 14:48:34 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-06-25 14:48:34 +0000
commite81160def298a80d49d59779aa1bb2c6329618f4 (patch)
tree7872d87ebd7e9ea6c9e698190b6f92044b498a6f
parenta267832ddf4150652fde3936858841bb2edbd9ae (diff)
downloadzsh-e81160def298a80d49d59779aa1bb2c6329618f4.tar.gz
zsh-e81160def298a80d49d59779aa1bb2c6329618f4.tar.xz
zsh-e81160def298a80d49d59779aa1bb2c6329618f4.zip
18634: Tomi Vainio: work around problem with latest Sun k2 compiler
-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 *