From 47f2b7c6afb1825c1bc2497ff866ddca8f8762ca Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 11 Nov 2022 11:50:53 +0100 Subject: [PATCH] AlmostEqualUlps setting has been too strict: it failed in MINGW gcc. 3 --> 10 --- src/spicelib/parser/ptfuncs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spicelib/parser/ptfuncs.c b/src/spicelib/parser/ptfuncs.c index 6abfff6d2..c084350d8 100644 --- a/src/spicelib/parser/ptfuncs.c +++ b/src/spicelib/parser/ptfuncs.c @@ -77,8 +77,8 @@ PTpower(double arg1, double arg2) else { /* If arg2 is quasi an integer, round it to have pow not fail when arg1 is negative. Takes into account the double - representation which sometimes differs in the last digit. */ - if (AlmostEqualUlps(trunc(arg2), arg2, 3)) + representation which sometimes differs in the last digit(s). */ + if (AlmostEqualUlps(trunc(arg2), arg2, 10)) res = pow(arg1, round(arg2)); else /* As per LTSPICE specification for ** */