From 0467a101dacffaf7b32716708d4557afa9c27c4f Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sun, 8 Jul 2001 00:30:43 +0000 Subject: Don't always coerce to float when assigning to an unset parameter. --- Src/math.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/math.c') diff --git a/Src/math.c b/Src/math.c index 5e4b67c9b..755026b6c 100644 --- a/Src/math.c +++ b/Src/math.c @@ -641,7 +641,8 @@ op(int what) b.type = MN_INTEGER; b.u.l = (zlong)b.u.d; } - } else if (a.type != b.type && what != COMMA) { + } else if (a.type != b.type && what != COMMA && + (a.type != MN_UNSET || what != EQ)) { /* * Different types, so coerce to float. * It may happen during an assigment that the LHS -- cgit 1.4.1