diff --git a/flang/runtime/command.cpp b/flang/runtime/command.cpp index 311107ee7dfad..fe54da2e6d68b 100644 --- a/flang/runtime/command.cpp +++ b/flang/runtime/command.cpp @@ -28,7 +28,7 @@ std::int32_t RTNAME(ArgumentCount)() { // Returns the length of the \p string. Assumes \p string is valid. static std::int64_t StringLength(const char *string) { std::size_t length{std::strlen(string)}; - if constexpr (sizeof(std::size_t) <= sizeof(std::int64_t)) { + if constexpr (sizeof(std::size_t) < sizeof(std::int64_t)) { return static_cast(length); } else { std::size_t max{std::numeric_limits::max()};