Skip to content

Commit 0e3a17c

Browse files
authored
[libc][math] Fix gcc buildbot failure (#152320)
Signed-off-by: Krishna Pandey <[email protected]>
1 parent b1482aa commit 0e3a17c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/__support/FPUtil/generic/add_sub.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ add_or_sub(InType x, InType y) {
174174
int alignment = (max_bits.get_biased_exponent() - max_bits.is_normal()) -
175175
(min_bits.get_biased_exponent() - min_bits.is_normal());
176176

177-
InStorageType aligned_min_mant =
178-
min_mant >> cpp::min(alignment, RESULT_MANTISSA_LEN);
177+
InStorageType aligned_min_mant = static_cast<InStorageType>(
178+
min_mant >> cpp::min(alignment, RESULT_MANTISSA_LEN));
179179
bool aligned_min_mant_sticky;
180180

181181
if (alignment <= GUARD_BITS_LEN)

0 commit comments

Comments
 (0)