Correct factor-of-10 error in INT_STRLEN_MAXIMUM() calculation.

This commit is contained in:
Kris Kennaway 2000-08-04 11:03:20 +00:00
parent 683544bd3e
commit dec5f6ac42

View File

@ -1,3 +1,5 @@
/* $FreeBSD$ */
#ifndef PRIVATE_H
#define PRIVATE_H
@ -166,7 +168,7 @@ static char privatehid[] = "@(#)private.h 7.43";
** add one more for a minus sign if the type is signed.
*/
#define INT_STRLEN_MAXIMUM(type) \
((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 100 + 1 + TYPE_SIGNED(type))
((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 1000 + 1 + TYPE_SIGNED(type))
#endif /* !defined INT_STRLEN_MAXIMUM */
/*