mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34: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)
|
__iptr __check_errno(__iptr status, __iptr err)
|
||||||
{
|
{
|
||||||
if (status >= EOK)
|
if ((int)status >= EOK)
|
||||||
return status;
|
return status;
|
||||||
pthread_self()->CurrentError = status;
|
pthread_self()->CurrentError = (int)status;
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user