summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shared/macro.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h
index e88630fa04..7f89951d62 100644
--- a/src/shared/macro.h
+++ b/src/shared/macro.h
@@ -383,7 +383,8 @@ do { \
/* Returns the number of chars needed to format variables of the
* specified type as a decimal string. Adds in extra space for a
- * negative '-' prefix. */
+ * negative '-' prefix (hence works correctly on signed
+ * types). Includes space for the trailing NUL. */
#define DECIMAL_STR_MAX(type) \
(2+(sizeof(type) <= 1 ? 3 : \
sizeof(type) <= 2 ? 5 : \