diff options
author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-15 13:03:11 +0000 |
---|---|---|
committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2022-01-15 13:03:11 +0000 |
commit | d464a1d3a62d620b6336131c355467bdc273e3c5 (patch) | |
tree | f1e495cbff84173fea0bb238bfb01e509ab524fe /eval.c | |
parent | 65f7f8c1f339e11ed7867eb1c19fa4692976221a (diff) |
Rework printer to add vertical padding too
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -233,7 +233,7 @@ Datum monadop(Datum left, Datum right) { traceprint("Applying left argument to operator\n"); - Datum *arg = malloc(sizeof(Datum)); + Datum *arg = emalloc(sizeof(Datum)); *arg = left; Datum result; @@ -252,7 +252,7 @@ Datum dyadop(Datum left, Datum right) { traceprint("Applying right argument to operator\n"); - Datum *arg = malloc(sizeof(Datum)); + Datum *arg = emalloc(sizeof(Datum)); *arg = right; Datum result; |