Skip to content

Commit b7fc8a5

Browse files
committed
fix limit template
1 parent 89009a2 commit b7fc8a5

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
@@ -82,10 +82,10 @@ int64_t MulOverflow(int64_t X, int64_t Y, int64_t &Result) {
8282
// positive) divided by an argument compares to the other.
8383
if (IsNegative)
8484
return UX >
85-
(static_cast<uint64_t>(std::numeric_limits<T>::max()) + uint64_t(1)) /
85+
(static_cast<uint64_t>(std::numeric_limits<int64_t>::max()) + uint64_t(1)) /
8686
UY;
8787
else
88-
return UX > (static_cast<uint64_t>(std::numeric_limits<T>::max())) / UY;
88+
return UX > (static_cast<uint64_t>(std::numeric_limits<int64_t>::max())) / UY;
8989
#endif
9090
}
9191

0 commit comments

Comments
 (0)