diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-06-28 11:26:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-28 11:26:02 -0700 |
| commit | b8e31688c6826475b5199468aedea0bc44c0adc1 (patch) | |
| tree | 79b9227ef038d173d780a440035e616dc31104bb /source/slang/syntax.cpp | |
| parent | afe41a6c994a684cd646b4432a285ef959d0716b (diff) | |
| parent | d601921b71ed44835e8d4fa6f13ff7aefcf7649d (diff) | |
Merge pull request #48 from tfoleyNV/literal-suffix-fix
Fix handling of literal suffixes
Diffstat (limited to 'source/slang/syntax.cpp')
| -rw-r--r-- | source/slang/syntax.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/slang/syntax.cpp b/source/slang/syntax.cpp index f78d3c8ec..6b9a74f7d 100644 --- a/source/slang/syntax.cpp +++ b/source/slang/syntax.cpp @@ -1397,6 +1397,11 @@ namespace Slang return sBuiltinTypes[(int)BaseType::Float].GetValue().Ptr(); } + ExpressionType* ExpressionType::getDoubleType() + { + return sBuiltinTypes[(int)BaseType::Double].GetValue().Ptr(); + } + ExpressionType* ExpressionType::GetInt() { return sBuiltinTypes[(int)BaseType::Int].GetValue().Ptr(); |
