mirror of
https://github.com/cc65/cc65.git
synced 2024-12-26 08:32:00 +00:00
limits.h was apparently already included somewhere on windows but not linux
This commit is contained in:
parent
ca8201a314
commit
69f4cd1847
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user