diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-06-28 11:39:40 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-06-28 11:51:23 -0700 |
| commit | ff53669ed918c87d15ddea2d07fda84d4c8eff5d (patch) | |
| tree | 0082315629ad76add2ebffe04dcd1f64943c0a9f /source/slang/parameter-binding.cpp | |
| parent | b8e31688c6826475b5199468aedea0bc44c0adc1 (diff) | |
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.
Diffstat (limited to 'source/slang/parameter-binding.cpp')
| -rw-r--r-- | source/slang/parameter-binding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<MatrixExpressionType>() ) { auto rowCount = GetIntVal(matrixType->getRowCount()); - processSimpleEntryPointParameter(context, basicType, state, rowCount); + processSimpleEntryPointParameter(context, basicType, state, (int) rowCount); } else if( auto arrayType = type->As<ArrayExpressionType>() ) { |
