1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 02:29:52 +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 <math.h>
#include <inttypes.h>
#include <limits.h>
/* common */
#include "chartype.h"
@ -590,6 +591,7 @@ static void NumericConst (void)
SB_Clear (&Src);
break;
}
/* Test result of adding digit for overflow. */
if (((scan_t)(IVal * Base + DigitVal) / Base) != IVal) {
Overflow = 1;
}