From 4215fcb1075f4608cf039ae9b593b07580060a70 Mon Sep 17 00:00:00 2001 From: Martijn Dekker Date: Tue, 25 Dec 2018 17:18:57 +0000 Subject: 43944: apply NO_UNSET consistently to arithmeitc --- Src/math.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/math.c') diff --git a/Src/math.c b/Src/math.c index b08e05cb4..a38770073 100644 --- a/Src/math.c +++ b/Src/math.c @@ -342,6 +342,8 @@ getmathparam(struct mathvalue *mptr) mptr->pval = (Value)zhalloc(sizeof(struct value)); if (!getvalue(mptr->pval, &s, 1)) { + if (unset(UNSET)) + zerr("%s: parameter not set", mptr->lval); mptr->pval = NULL; if (isset(FORCEFLOAT)) { result.type = MN_FLOAT; -- cgit 1.4.1