aboutsummaryrefslogtreecommitdiff
path: root/projects/Stacker/lib/compiler/Lexer.l
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-05-09 23:20:19 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-05-09 23:20:19 +0000
commitdc8e6b59e783b5816ac7f995f9a36ad9c8d4ba87 (patch)
tree3b53cf5ca265e018e0ff3009911b94ba27c9205f /projects/Stacker/lib/compiler/Lexer.l
parent9984fd0df9f4a07345c46ade9d8d7d5a4829a967 (diff)
Changes to make the Stacker Stack use 64 bit values. This *should* get
around the problem with Stacker on Solaris because the Stack can handle 64-bit entries (pointer sized). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13441 91177308-0d34-0410-b5e6-96231b3b80d8
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')