We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d2a90f commit 80628f5Copy full SHA for 80628f5
clang/lib/Parse/ParseHLSLRootSignature.cpp
@@ -740,8 +740,8 @@ std::optional<float> RootSignatureParser::parseFloatParam() {
740
tryConsumeExpectedToken({TokenKind::pu_plus, TokenKind::pu_minus});
741
bool Negated = Signed && CurToken.TokKind == TokenKind::pu_minus;
742
743
- // Handle an uint and interpret it as a float
744
- if (!Signed && tryConsumeExpectedToken(TokenKind::int_literal)) {
+ // DXC will treat a postive signed integer as unsigned
+ if (!Negated && tryConsumeExpectedToken(TokenKind::int_literal)) {
745
auto UInt = handleUIntLiteral();
746
if (!UInt.has_value())
747
return std::nullopt;
0 commit comments