summaryrefslogtreecommitdiff
path: root/symbol.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-22 16:53:29 +0000
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2022-01-22 16:53:29 +0000
commit9c93bc20cc68e50461bb086f24f335de9dcc5135 (patch)
treeff860c161b890feaa16846ce00fe6c55c2929db5 /symbol.c
parent071bef0ccfca9137eb3c814cbc9552f02e6f1b4d (diff)
Implement ⎕DIV for allowing division by zero to result in 0 if needed
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/symbol.c b/symbol.c
index 9b91cd1..d51a730 100644
--- a/symbol.c
+++ b/symbol.c
@@ -31,6 +31,7 @@ newsymtab(void)
tab->nsyms = 0;
tab->syms = nil;
tab->io = currentsymtab ? currentsymtab->io : 1;
+ tab->div = currentsymtab ? currentsymtab->div : 0;
return tab;
}