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
+1
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)