diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-05-09 23:20:19 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-05-09 23:20:19 +0000 |
commit | be4fadf1b8aaa87966ec996e060809431e7173ca (patch) | |
tree | c90380ff5c3fbc0eac5ebffddf102fc788f61a72 /llvm/projects/Stacker/lib/compiler/Lexer.l | |
parent | a367dd745b011f9eb0196bd01cfeba25b31254be (diff) | |
download | bcm5719-llvm-be4fadf1b8aaa87966ec996e060809431e7173ca.tar.gz bcm5719-llvm-be4fadf1b8aaa87966ec996e060809431e7173ca.zip |
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).
llvm-svn: 13441
Diffstat (limited to 'llvm/projects/Stacker/lib/compiler/Lexer.l')
-rw-r--r-- | llvm/projects/Stacker/lib/compiler/Lexer.l | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/projects/Stacker/lib/compiler/Lexer.l b/llvm/projects/Stacker/lib/compiler/Lexer.l index 65f1a972d66..e45cdee87f2 100644 --- a/llvm/projects/Stacker/lib/compiler/Lexer.l +++ b/llvm/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') |