From 014dfe1b7b3a29d45a66250869972bbc543ea7ab Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Wed, 16 Dec 2020 14:26:12 +0100 Subject: [PATCH] The old inp_deckcopy() is a safer way of copying, while retaining the correct line numbers for parameter substitution. --- src/frontend/subckt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/subckt.c b/src/frontend/subckt.c index 647a6bb35..2faf56c39 100644 --- a/src/frontend/subckt.c +++ b/src/frontend/subckt.c @@ -614,11 +614,10 @@ doit(struct card *deck, wordlist *modnames) { */ if (sss) { // tprint(sss->su_def); - struct card *su_deck = inp_deckcopy_ln(sss->su_def); + struct card *su_deck = inp_deckcopy(sss->su_def); /* If we have modern PDKs, we have to reduce the amount of memory required. We try to reduce the models to the one really used. Otherwise su_deck is full of unused binning models.*/ -// struct card* su_deck = NULL; if ((newcompat.hs || newcompat.spe) && c->w > 0 && c->l > 0) { /* extract wmin, wmax, lmin, lmax */ struct card* new_deck = su_deck;