add an assert in case the sizeof int ever becomes bigger.. Then we will

have issues, at least we'll know where one of them are..

Submitted by:	Erich Dollansky
This commit is contained in:
John-Mark Gurney 2015-02-11 07:44:53 +00:00
parent 6fc44dab19
commit 726b947f51
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278560

View File

@ -58,6 +58,7 @@ char *str;
* ever convert will be 2^32-1, which is 10
* digits.
*/
_Static_assert(sizeof(int) <= 4, "buffer too small for this sized int");
char *itoa(val)