File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -744,12 +744,16 @@ std::optional<float> RootSignatureParser::parseFloatParam() {
744
744
if (!UInt.has_value ())
745
745
return std::nullopt;
746
746
return (float )UInt.value ();
747
- } else if (tryConsumeExpectedToken (TokenKind::int_literal)) {
747
+ }
748
+
749
+ if (Negated && tryConsumeExpectedToken (TokenKind::int_literal)) {
748
750
std::optional<int32_t > = handleIntLiteral (Negated);
749
751
if (!Int.has_value ())
750
752
return std::nullopt;
751
753
return (float )Int.value ();
752
- } else if (tryConsumeExpectedToken (TokenKind::float_literal)) {
754
+ }
755
+
756
+ if (tryConsumeExpectedToken (TokenKind::float_literal)) {
753
757
std::optional<float > Float = handleFloatLiteral (Negated);
754
758
if (!Float.has_value ())
755
759
return std::nullopt;
You can’t perform that action at this time.
0 commit comments