summaryrefslogtreecommitdiff
path: root/source/slang/slang-parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-parser.cpp')
-rw-r--r--source/slang/slang-parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp
index 7e9740b53..1302975df 100644
--- a/source/slang/slang-parser.cpp
+++ b/source/slang/slang-parser.cpp
@@ -5754,7 +5754,7 @@ static Stmt* parseTargetSwitchStmtImpl(Parser* parser, TargetSwitchStmt* stmt)
Diagnostics::unknownTargetName,
caseName.getContent());
}
- targetCase->capability = int32_t(cap);
+ targetCase->capability = (int32_t)cap;
targetCase->capabilityToken = caseName;
targetCase->loc = caseName.loc;
targetCase->body = bodyStmt;
@@ -8743,7 +8743,7 @@ Expr* Parser::ParseLeafExpression()
/// Parse an argument to an application of a generic
static Expr* _parseGenericArg(Parser* parser)
{
- // The grammar for generic arguments needs to be a super-set of the
+ // The grammar for generic arguments needs to be a superset of the
// grammar for types and for expressions, because we do not know
// which to expect at each argument position during parsing.
//