Skip to content

Commit 82e52d9

Browse files
error: implicit conversion loses integer precision: 'int' to 'uint8_t' (aka 'unsigned char') [-Werror,-Wimplicit-int-conversion]
1 parent 7210495 commit 82e52d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/test/src/signal/sigaltstack_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static void handler(int) {
3333
// out or mapped to a register.
3434
uint8_t var[LOCAL_VAR_SIZE];
3535
for (int i = 0; i < LOCAL_VAR_SIZE; ++i)
36-
var[i] = i;
36+
var[i] = (uint8_t)i;
3737
// Verify that array is completely on the alt_stack.
3838
for (int i = 0; i < LOCAL_VAR_SIZE; ++i) {
3939
if (!(uintptr_t(var + i) < uintptr_t(alt_stack + ALT_STACK_SIZE) &&

0 commit comments

Comments
 (0)