From cebb1a5277df70574ce4a370b2ab74283ca6bd69 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 16:01:47 +0100 Subject: [PATCH] lefTech.c: fix: default value logic error Looks like a logic bug, hiding behind this compiler warning lefTech.c:507:21: warning: suggest parentheses around assignment used as truth value lefTech.c:509:21: warning: suggest parentheses around assignment used as truth value GCC14 -Wall cleanup series [-Wparentheses] --- lef/lefTech.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lef/lefTech.c b/lef/lefTech.c index 16644e16..aecfa6bb 100644 --- a/lef/lefTech.c +++ b/lef/lefTech.c @@ -504,9 +504,9 @@ LefTechSetDefaults() } else if (lefl->lefClass == CLASS_ROUTE) { - if (lefl->info.route.width = -1) + if (lefl->info.route.width == -1) lefl->info.route.width = DRCGetDefaultLayerWidth(lefl->type); - if (lefl->info.route.spacing = -1) + if (lefl->info.route.spacing == -1) lefl->info.route.width = DRCGetDefaultLayerSpacing(lefl->type, lefl->type); }