Skip to content

Commit 8d9345b

Browse files
authored
Merge pull request #17708 from mikeash/fix-nullptr-bool-conversion-warning
[Runtime] Fix warning about implicitly converting nullptr to bool in CompatibilityOverride.cpp tests.
2 parents 3227916 + b1d1ca2 commit 8d9345b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/runtime/CompatibilityOverride.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ bool Ran;
3131
if (!EnableOverride) \
3232
return originalImpl namedArgs; \
3333
Ran = true; \
34-
return nullptr; \
34+
return (ret)0; \
3535
}
3636
#include "../../stdlib/public/runtime/CompatibilityOverride.def"
3737

0 commit comments

Comments
 (0)