DRAFT test: 16-cast.c: Fix for riscv64.

RISC-V64 has `unsigned char` for `char`, so it failed to build. In amd64
`char` is `signed char`, so the code wasn't portable. We have to be
explicit about the sign of the `char`.

* lib/test/scaffold/16-cast.c: Add `signed` to `char`.
This commit is contained in:
Ekaitz Zarraga 2023-10-18 15:30:34 +02:00 committed by Janneke Nieuwenhuizen
parent 90a1684b89
commit 5d6041b780

View file

@ -21,7 +21,7 @@
int int
main () main ()
{ {
char c = -1; signed char c = -1;
unsigned u = c; unsigned u = c;
unsigned t = (unsigned char)c; unsigned t = (unsigned char)c;
int i = -1; int i = -1;