mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-27 15:04:31 +00:00
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:
parent
42f26787fb
commit
4240183fa1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user