File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -740,17 +740,17 @@ std::optional<float> RootSignatureParser::parseFloatParam() {
740
740
741
741
// DXC will treat a postive signed integer as unsigned
742
742
if (!Negated && tryConsumeExpectedToken (TokenKind::int_literal)) {
743
- auto UInt = handleUIntLiteral ();
743
+ std::optional< uint32_t > UInt = handleUIntLiteral ();
744
744
if (!UInt.has_value ())
745
745
return std::nullopt;
746
746
return (float )UInt.value ();
747
747
} else if (tryConsumeExpectedToken (TokenKind::int_literal)) {
748
- auto Int = handleIntLiteral (Negated);
748
+ std::optional< int32_t > = handleIntLiteral (Negated);
749
749
if (!Int.has_value ())
750
750
return std::nullopt;
751
751
return (float )Int.value ();
752
752
} else if (tryConsumeExpectedToken (TokenKind::float_literal)) {
753
- auto Float = handleFloatLiteral (Negated);
753
+ std::optional< float > Float = handleFloatLiteral (Negated);
754
754
if (!Float.has_value ())
755
755
return std::nullopt;
756
756
return Float.value ();
You can’t perform that action at this time.
0 commit comments