From 712b1aab3ccd08819b3af6ab72dd8f6ac3a3a51a Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Sun, 30 Jul 2023 15:06:28 -0700 Subject: [PATCH] Make quick fix for aarch64 build --- libc/str/wcscmp.c | 2 +- test/libc/stdio/fds_torture_test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/str/wcscmp.c b/libc/str/wcscmp.c index 0bb88fc5d..3a0f49e57 100644 --- a/libc/str/wcscmp.c +++ b/libc/str/wcscmp.c @@ -30,7 +30,7 @@ int wcscmp(const wchar_t *a, const wchar_t *b) { size_t i = 0; if (a == b) return 0; while (a[i] == b[i] && b[i]) ++i; - return a[i] < b[i] ? -1 : a[i] > b[i]; + return (int)a[i] < (int)b[i] ? -1 : (int)a[i] > (int)b[i]; } __weak_reference(wcscmp, wcscoll); diff --git a/test/libc/stdio/fds_torture_test.c b/test/libc/stdio/fds_torture_test.c index 72adeb425..a116fa7ff 100644 --- a/test/libc/stdio/fds_torture_test.c +++ b/test/libc/stdio/fds_torture_test.c @@ -35,7 +35,7 @@ void *Torturer(void *arg) { } for (i = 0; i < FDS; ++i) { ASSERT_EQ(2, write(fd[i], "hi", 2)); - if (!fork()) _Exit(0); + if (!vfork()) _Exit(0); wait(0); } for (i = 0; i < FDS; ++i) {