about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-10 07:14:07 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-10 07:14:07 -0700
commit5bb70d5e7fd487fbde5b1d3ca40ee68343fbd898 (patch)
treeff114c9e30a62bcb0122ea975a0707e476b1cc35
parent1ce67ba21bce706932d0d3b3a6531075cf73c8ce (diff)
downloadmu-5bb70d5e7fd487fbde5b1d3ca40ee68343fbd898.tar.gz
4333
Fix a warning in CI.
-rw-r--r--subx/019syscalls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/019syscalls.cc b/subx/019syscalls.cc
index 34b086d6..fdafd7d4 100644
--- a/subx/019syscalls.cc
+++ b/subx/019syscalls.cc
@@ -17,7 +17,7 @@ void process_int80() {
     exit(Reg[EBX].u);
     break;
   case 3:
-    read(/*file descriptor*/Reg[EBX].u, /*memory buffer*/mem_addr_u8(Reg[ECX].u), /*size*/Reg[EDX].u);
+    Reg[EAX].i = read(/*file descriptor*/Reg[EBX].u, /*memory buffer*/mem_addr_u8(Reg[ECX].u), /*size*/Reg[EDX].u);
     break;
   }
 }