Make quick fix for aarch64 build

This commit is contained in:
Justine Tunney 2023-07-30 15:06:28 -07:00
parent c8aa33e0e2
commit 712b1aab3c
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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) {