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 c83c4b5 commit 20411c7Copy full SHA for 20411c7
flang/lib/Evaluate/intrinsics.cpp
@@ -1657,9 +1657,9 @@ std::optional<SpecificCall> IntrinsicInterface::Match(
1657
// max(a1=x) or max(a2=x)
1658
const auto kwA1{dummy[0].keyword};
1659
const auto kwA2{dummy[1].keyword};
1660
- if (maxMinKeywords.begin()->ToString().compare(kwA1) == 0) {
+ if (maxMinKeywords.begin()->ToString() == kwA1) {
1661
messages.Say("missing mandatory 'a2=' argument"_err_en_US);
1662
- } else if (maxMinKeywords.begin()->ToString().compare(kwA2) == 0) {
+ } else if (maxMinKeywords.begin()->ToString() == kwA2) {
1663
messages.Say("missing mandatory 'a1=' argument"_err_en_US);
1664
} else {
1665
messages.Say(
0 commit comments