]> git.proxmox.com Git - wasi-libc.git/commit
__wasi_thread_spawn: stop truncating the return value (#353)
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Wed, 7 Dec 2022 17:18:28 +0000 (02:18 +0900)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Fri, 8 Sep 2023 08:05:40 +0000 (10:05 +0200)
commit44fcb4f3afe63f7bd8e14bc94f01e98d36c785fe
tree72aa51a66f693e9da47412dcd273be77fa4aee97
parent26498a57c1516f341d07fa9b681ea5a4d4b0fb8f
__wasi_thread_spawn: stop truncating the return value (#353)

as __wasi_errno_t is uint16_t, with the current coding,
__pthread_create will never see negative return values from
wasi:thread_spawn.
eg. (int)(uint16_t)-1 == 65535.
libc-bottom-half/headers/public/wasi/api.h
libc-bottom-half/sources/__wasilibc_real.c