Skip to content

Commit 80628f5

Browse files
committed
self-review: treat postive integer as unsigned
1 parent 5d2a90f commit 80628f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Parse/ParseHLSLRootSignature.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,8 @@ std::optional<float> RootSignatureParser::parseFloatParam() {
740740
tryConsumeExpectedToken({TokenKind::pu_plus, TokenKind::pu_minus});
741741
bool Negated = Signed && CurToken.TokKind == TokenKind::pu_minus;
742742

743-
// Handle an uint and interpret it as a float
744-
if (!Signed && tryConsumeExpectedToken(TokenKind::int_literal)) {
743+
// DXC will treat a postive signed integer as unsigned
744+
if (!Negated && tryConsumeExpectedToken(TokenKind::int_literal)) {
745745
auto UInt = handleUIntLiteral();
746746
if (!UInt.has_value())
747747
return std::nullopt;

0 commit comments

Comments
 (0)