Possible Bug in INT_STRLEN_MAXIMUM macro
rthelen at netapp.com
Fri Aug 21 23:16:37 UTC 1998
The INT_STRLEN_MAXIMUM macro in lib/private.h used by, among other
files, asctime.c, states in its comment field:
** 302 / 1000 is log10(2.0) rounded up.
And then in the macro definition we find:
#define INT_STRLEN_MAXIMUM(type) \
... * 302 / 100 ...
Me thinks this is not what was intended. Possibly it's an error,
possibly it's the right thing. Could you send mail back telling me if
this was on purpose?
-- Randy Thelen
Network Appliance, Inc.
More information about the tz