Skip to content

Commit 7a85d3c

Browse files
committed
Fix windows precommit
1 parent ebf1e1c commit 7a85d3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/include/flang/Common/format.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ static inline bool MulOverflow(
7272
return __builtin_mul_overflow(x, y, &result);
7373
#else
7474
// Perform the unsigned multiplication on absolute values.
75-
const std::uint64_t ux{X < 0 ? (0 - static_cast<std::uint64_t>(x))
75+
const std::uint64_t ux{x < 0 ? (0 - static_cast<std::uint64_t>(x))
7676
: static_cast<std::uint64_t>(x)};
7777
const std::uint64_t uy{y < 0 ? (0 - static_cast<std::uint64_t>(y))
7878
: static_cast<std::uint64_t>(y)};
7979
const std::uint64_t uresult{ux * uy};
8080

8181
// Convert to signed.
82-
const bool isNegative{(x < 0) ^ (y < 0)};
82+
const bool isNegative = (x < 0) ^ (y < 0);
8383
result = isNegative ? (0 - uresult) : uresult;
8484

8585
// If any of the args was 0, result is 0 and no overflow occurs.

0 commit comments

Comments
 (0)