From ff53669ed918c87d15ddea2d07fda84d4c8eff5d Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Wed, 28 Jun 2017 11:39:40 -0700 Subject: Store integer literals at high precision in AST The lexer was creating an `unsigned long long` value, and then the AST was storing it in an `int`. This change makes both use a `long long`. This is obviously still a stopgap until I can get arbitrary precisions in here. --- source/slang/lexer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/lexer.h') diff --git a/source/slang/lexer.h b/source/slang/lexer.h index 53bfc0999..71b2e85b1 100644 --- a/source/slang/lexer.h +++ b/source/slang/lexer.h @@ -92,7 +92,7 @@ namespace Slang String getStringLiteralTokenValue(Token const& token); String getFileNameTokenValue(Token const& token); - typedef unsigned long long IntegerLiteralValue; + typedef long long IntegerLiteralValue; typedef double FloatingPointLiteralValue; IntegerLiteralValue getIntegerLiteralValue(Token const& token, String* outSuffix = 0); -- cgit v1.2.3