From 5d6041b7808d9fd89e3ada61b35c4057c8492b86 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Wed, 18 Oct 2023 15:30:34 +0200 Subject: [PATCH] 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`. --- lib/tests/scaffold/16-cast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests/scaffold/16-cast.c b/lib/tests/scaffold/16-cast.c index d83d4e8b..5895a2d7 100644 --- a/lib/tests/scaffold/16-cast.c +++ b/lib/tests/scaffold/16-cast.c @@ -21,7 +21,7 @@ int main () { - char c = -1; + signed char c = -1; unsigned u = c; unsigned t = (unsigned char)c; int i = -1;