X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fmacro.h;h=7f89951d62e00ee5f68809e017c2572f1e174770;hp=e88630fa04deab1dbce89a0f2668b1758637f0b6;hb=2f07de3b6cacf44462635ab0fff56391b491e454;hpb=df99a9ef5bb7a89b92ccfb103b2f3e7046c62ef5 diff --git a/src/shared/macro.h b/src/shared/macro.h index e88630fa0..7f89951d6 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 : \