mescc: Mes C Library: Prepare for M2-Planet: read.

* lib/linux/read.c (read): Prepare for M2-Planet.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-07-25 19:54:40 +02:00
parent eb28518a35
commit 8aedfd8f5f
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -26,7 +26,8 @@
ssize_t ssize_t
read (int filedes, void *buffer, size_t size) read (int filedes, void *buffer, size_t size)
{ {
ssize_t bytes = _sys_call3 (SYS_read, filedes, buffer, size); long long_filedes = filedes;
ssize_t bytes = _sys_call3 (SYS_read, long_filedes, buffer, size);
if (__mes_debug () > 4) if (__mes_debug () > 4)
{ {
if (bytes == 1) if (bytes == 1)