about summary refs log tree commit diff
path: root/Src/system.h
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-04-28 17:38:00 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-04-28 17:38:00 +0000
commitba9541fb5d123238b8d0a9bd7461b1954d00245c (patch)
treebcf4ad2b6c5bfba953e96fc90dfc7587d80d8fe5 /Src/system.h
parent6f2112f23a4838fd1c52efd16c844142f5407394 (diff)
downloadzsh-ba9541fb5d123238b8d0a9bd7461b1954d00245c.tar.gz
zsh-ba9541fb5d123238b8d0a9bd7461b1954d00245c.tar.xz
zsh-ba9541fb5d123238b8d0a9bd7461b1954d00245c.zip
BDIGBUFSIZE for binary conversions.
Diffstat (limited to 'Src/system.h')
-rw-r--r--Src/system.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/system.h b/Src/system.h
index 1540e421f..42a5f1197 100644
--- a/Src/system.h
+++ b/Src/system.h
@@ -406,8 +406,10 @@ struct timezone {
 /* DIGBUFSIZ is the length of a buffer which can hold the -LONG_MAX-1 *
  * (or with ZSH_64_BIT_TYPE maybe -LONG_LONG_MAX-1)                   *
  * converted to printable decimal form including the sign and the     *
- * terminating null character. Below 0.30103 > lg 2.                  */
+ * 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 BDIGBUFSIZE ((int)((sizeof(zlong) * 8) + 4))
 
 /* If your stat macros are broken, we will *
  * just undefine them.                     */