Skip to content

Commit d44ca0a

Browse files
1 parent e9ab7b4 commit d44ca0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/__support/big_int.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ LIBC_INLINE constexpr cpp::array<word, N> shift(cpp::array<word, N> array,
285285
return 0;
286286
if (i >= int(N))
287287
return is_neg ? cpp::numeric_limits<word>::max() : 0;
288-
return array[static_cast<size_t>(i)];
288+
return array[static_cast<unsigned>(i)];
289289
};
290290
const size_t index_offset = offset / WORD_BITS;
291291
const size_t bit_offset = offset % WORD_BITS;
@@ -296,7 +296,7 @@ LIBC_INLINE constexpr cpp::array<word, N> shift(cpp::array<word, N> array,
296296
for (size_t index = 0; index < N; ++index) {
297297
const word part1 = safe_get_at(index + index_offset);
298298
const word part2 = safe_get_at(index + index_offset + 1);
299-
word &dst = out[static_cast<size_t>(at(index))];
299+
word &dst = out[static_cast<unsigned>(at(index))];
300300
if (bit_offset == 0)
301301
dst = part1; // no crosstalk between parts.
302302
else if constexpr (direction == LEFT)

0 commit comments

Comments
 (0)