fix(userspace/libc): cast status to int in __check_errno for proper error handling

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
EnderIce2 2025-02-21 02:33:40 +02:00
parent 42f26787fb
commit 4240183fa1
No known key found for this signature in database
GPG Key ID: 2EE20AF089811A5A

View File

@ -21,9 +21,9 @@
__iptr __check_errno(__iptr status, __iptr err)
{
if (status >= EOK)
if ((int)status >= EOK)
return status;
pthread_self()->CurrentError = status;
pthread_self()->CurrentError = (int)status;
return err;
}