From d6913e92bfd13a918b19223fb676e9c0f136400e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 26 Mar 2005 17:47:53 +0000 Subject: [PATCH] (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): "value of type" -> "type or expression" in comment. --- lib/intprops.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/intprops.h b/lib/intprops.h index 5c14397ac6..409e0f1d4d 100644 --- a/lib/intprops.h +++ b/lib/intprops.h @@ -53,13 +53,13 @@ ? (t) -1 \ : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) -/* Bound on length of the string representing an integer value of type T. +/* Bound on length of the string representing an integer type or expression T. Subtract 1 for the sign bit if t is signed; log10 (2.0) < 146/485; add 1 for integer division truncation; add 1 more for a minus sign if needed. */ #define INT_STRLEN_BOUND(t) \ ((sizeof (t) * CHAR_BIT - 1) * 146 / 485 + 2) -/* Bound on buffer size needed to represent an integer value of type T, +/* Bound on buffer size needed to represent an integer type or expression T, including the terminating null. */ #define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1) -- 2.30.2