aboutsummaryrefslogtreecommitdiff
path: root/projects/Stacker/lib/compiler/Lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'projects/Stacker/lib/compiler/Lexer.l')
-rw-r--r--projects/Stacker/lib/compiler/Lexer.l12
1 files changed, 6 insertions, 6 deletions
diff --git a/projects/Stacker/lib/compiler/Lexer.l b/projects/Stacker/lib/compiler/Lexer.l
index 65f1a972d6..e45cdee87f 100644
--- a/projects/Stacker/lib/compiler/Lexer.l
+++ b/projects/Stacker/lib/compiler/Lexer.l
@@ -31,10 +31,10 @@
#include "StackerParser.h"
/* Conversion of text ints to binary */
-static uint64_t IntToVal(const char *Buffer) {
- uint64_t Result = 0;
+static int64_t IntToVal(const char *Buffer) {
+ int64_t Result = 0;
for (; *Buffer; Buffer++) {
- uint64_t OldRes = Result;
+ int64_t OldRes = Result;
Result *= 10;
Result += *Buffer-'0';
if (Result < OldRes) // Uh, oh, overflow detected!!!
@@ -44,10 +44,10 @@ static uint64_t IntToVal(const char *Buffer) {
}
/* Conversion of text hexadecimal ints to binary */
-static uint64_t HexIntToVal(const char *Buffer) {
- uint64_t Result = 0;
+static int64_t HexIntToVal(const char *Buffer) {
+ int64_t Result = 0;
for (; *Buffer; ++Buffer) {
- uint64_t OldRes = Result;
+ int64_t OldRes = Result;
Result *= 16;
char C = *Buffer;
if (C >= '0' && C <= '9')