diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-06-28 12:17:47 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-28 12:17:47 -0700 |
| commit | 16613ed981fc5dc38966f5108e85b1aee36ef92f (patch) | |
| tree | 0082315629ad76add2ebffe04dcd1f64943c0a9f /source/slang/syntax.cpp | |
| parent | b8e31688c6826475b5199468aedea0bc44c0adc1 (diff) | |
| parent | ff53669ed918c87d15ddea2d07fda84d4c8eff5d (diff) | |
Merge pull request #50 from tfoleyNV/literal-fix-fix
Store integer literals at high precision in AST
Diffstat (limited to 'source/slang/syntax.cpp')
| -rw-r--r-- | source/slang/syntax.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp index 6b9a74f7d..cf529e55e 100644 --- a/source/slang/syntax.cpp +++ b/source/slang/syntax.cpp @@ -1268,7 +1268,7 @@ namespace Slang // IntVal - int GetIntVal(RefPtr<IntVal> val) + IntegerLiteralValue GetIntVal(RefPtr<IntVal> val) { if (auto constantVal = val.As<ConstantIntVal>()) { @@ -1294,7 +1294,7 @@ namespace Slang int ConstantIntVal::GetHashCode() { - return value; + return (int) value; } // SwitchStmt |
