mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 18:02:52 +02:00
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]
This commit is contained in:
committed by
Tim Edwards
parent
4ea0f6a9b7
commit
cebb1a5277
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user