1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00

limits.h was apparently already included somewhere on windows but not linux

This commit is contained in:
bbbradsmith 2023-05-04 05:48:48 -04:00
parent ca8201a314
commit 69f4cd1847

View File

@ -40,6 +40,7 @@
#include <ctype.h> #include <ctype.h>
#include <math.h> #include <math.h>
#include <inttypes.h> #include <inttypes.h>
#include <limits.h>
/* common */ /* common */
#include "chartype.h" #include "chartype.h"
@ -590,6 +591,7 @@ static void NumericConst (void)
SB_Clear (&Src); SB_Clear (&Src);
break; break;
} }
/* Test result of adding digit for overflow. */
if (((scan_t)(IVal * Base + DigitVal) / Base) != IVal) { if (((scan_t)(IVal * Base + DigitVal) / Base) != IVal) {
Overflow = 1; Overflow = 1;
} }