Skip to content

Commit 9e64e2a

Browse files
WIP: sign-conversion
1 parent 12c5a46 commit 9e64e2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libc/src/__support/big_int.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ 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+
#pragma GCC diagnostic push
300+
#pragma GCC diagnostic ignored "-Wsign-conversion"
299301
word &dst = out[at(index)];
302+
#pragma GCC diagnostic pop
300303
if (bit_offset == 0)
301304
dst = part1; // no crosstalk between parts.
302305
else if constexpr (direction == LEFT)

0 commit comments

Comments
 (0)