summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.myr b/main.myr
index 292d2d6..cf6897b 100644
--- a/main.myr
+++ b/main.myr
@@ -92,8 +92,8 @@ const main = {
// CALL
| 0x2:
sp++
- if sp > stksz
- std.die("stack overflow")
+ if sp >= stksz
+ std.die("stack overflow\n")
;;
stk[sp] = pc
pc = (opcode & 0x0f : uint16)