summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memory.c b/memory.c
index 37b9983..309d1ae 100644
--- a/memory.c
+++ b/memory.c
@@ -76,7 +76,7 @@ static Address memory_read_bytes(int reader, Address addr, uint8_t *memory, Addr
Address idx = 0;
while (idx < nbytes) {
ssize_t n = read(reader, &memory[idx], (size_t)(nbytes - idx));
- if (n <= 0) break;
+ if (n <= 0) { break; }
idx += (Address)n;
}
return idx;