From 0b46715bff7f047fefed303ae149d3de8eb6be4f Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 21 Feb 2024 13:59:30 -0800 Subject: Fix parsing of literals in stdlib. (#3610) * Fix parsing of literals in stdlib. * Fix double lit limits. --- source/slang/slang-ast-expr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/slang/slang-ast-expr.h') diff --git a/source/slang/slang-ast-expr.h b/source/slang/slang-ast-expr.h index 9f2cd22a9..9a7993937 100644 --- a/source/slang/slang-ast-expr.h +++ b/source/slang/slang-ast-expr.h @@ -79,6 +79,7 @@ class LiteralExpr : public Expr // The token that was used to express the literal. This can be // used to get the raw text of the literal, including any suffix. Token token; + BaseType suffixType = BaseType::Void; }; class IntegerLiteralExpr : public LiteralExpr -- cgit v1.2.3