Skip to content

Commit 7a71ad5

Browse files
correct cast
1 parent 25aaf92 commit 7a71ad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/big_int.h

Lines changed: 1 addition & 1 deletion
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[i];
288+
return array[static_cast<size_t>(i)];
289289
};
290290
const size_t index_offset = offset / WORD_BITS;
291291
const size_t bit_offset = offset % WORD_BITS;

0 commit comments

Comments
 (0)