From d464a1d3a62d620b6336131c355467bdc273e3c5 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sat, 15 Jan 2022 13:03:11 +0000 Subject: Rework printer to add vertical padding too --- eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index b3efc05..6b12245 100644 --- a/eval.c +++ b/eval.c @@ -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; -- cgit v1.2.3