diff options
Diffstat (limited to 'source/slang/parser.cpp')
| -rw-r--r-- | source/slang/parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/parser.cpp b/source/slang/parser.cpp index cd839415f..4f622ada6 100644 --- a/source/slang/parser.cpp +++ b/source/slang/parser.cpp @@ -3277,7 +3277,7 @@ namespace Slang constExpr->ConstType = ConstantExpressionSyntaxNode::ConstantType::Int; constExpr->integerValue = value; - constExpr->Type = suffixType; + constExpr->Type = QualType(suffixType); return constExpr; } @@ -3346,7 +3346,7 @@ namespace Slang constExpr->ConstType = ConstantExpressionSyntaxNode::ConstantType::Float; constExpr->floatingPointValue = value; - constExpr->Type = suffixType; + constExpr->Type = QualType(suffixType); return constExpr; } |
