summaryrefslogtreecommitdiff
path: root/chapter25/src/main/smp/sys/io.smp
diff options
context:
space:
mode:
Diffstat (limited to 'chapter25/src/main/smp/sys/io.smp')
-rw-r--r--chapter25/src/main/smp/sys/io.smp2
1 files changed, 1 insertions, 1 deletions
diff --git a/chapter25/src/main/smp/sys/io.smp b/chapter25/src/main/smp/sys/io.smp
index 33fbdb5e..d6263ffe 100644
--- a/chapter25/src/main/smp/sys/io.smp
+++ b/chapter25/src/main/smp/sys/io.smp
@@ -12,7 +12,7 @@ val read = { i32 fd ->
int len = 0;
while( true ) {
i32 rez = libc.read(fd,ptr,buf#);
- if( rez > buf# ) libc._exit(libc.errno);
+ if( rez > buf# ) libc._exit(libc.errno());
len += rez;
if( rez < buf# )
break;