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/parameter-binding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/parameter-binding.cpp') diff --git a/source/slang/parameter-binding.cpp b/source/slang/parameter-binding.cpp index 939380659..01b047c2c 100644 --- a/source/slang/parameter-binding.cpp +++ b/source/slang/parameter-binding.cpp @@ -895,7 +895,7 @@ static void processEntryPointParameter( else if( auto matrixType = type->As() ) { auto rowCount = GetIntVal(matrixType->getRowCount()); - processSimpleEntryPointParameter(context, basicType, state, rowCount); + processSimpleEntryPointParameter(context, basicType, state, (int) rowCount); } else if( auto arrayType = type->As() ) { -- cgit v1.2.3