From be577d431801492ec294d9baa5eda9d1b2bf4a4e Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 22 Feb 2023 15:30:50 -0500 Subject: [PATCH] Corrected the reading of the "defaultsidewall" statement in the tech file "extract" section to work correctly when the offset is negative. Generally, a negative offset is nonphysical and is just curve-fitting round-off error, but the existing code was failing to divide out the factor of 1000 that had been multiplied through when reading the tech file, resulting in a very wrong offset. --- VERSION | 2 +- extract/ExtTech.c | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/VERSION b/VERSION index b0b40763..f3c84e2f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.368 +8.3.369 diff --git a/extract/ExtTech.c b/extract/ExtTech.c index 1f32fb3f..6de3d943 100644 --- a/extract/ExtTech.c +++ b/extract/ExtTech.c @@ -3510,11 +3510,8 @@ zinit: ec = ec->ec_next) { ec->ec_cap *= 0.5; - if (ec->ec_offset > 0) - { - ec->ec_offset = (int)(((float)ec->ec_offset / dscale) + 0.5); - ec->ec_offset /= 1000; - } + ec->ec_offset = (int)(((float)ec->ec_offset / dscale) + 0.5); + ec->ec_offset /= 1000; } }