From c8340f2b4c7bfe8b8eadb6c8b7b97051a572e5fd Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 22 Nov 2017 22:31:14 +0100 Subject: [PATCH] findsubname(), fix lvalues --- src/frontend/numparam/spicenum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/numparam/spicenum.c b/src/frontend/numparam/spicenum.c index fa1191973..dde7860aa 100644 --- a/src/frontend/numparam/spicenum.c +++ b/src/frontend/numparam/spicenum.c @@ -190,10 +190,10 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p) entry_t *entry; /* check for known subckt name */ spice_dstring_reinit(&name); - int (t - s) = (int) (p - s - 1) + 1; + char *t = s + (int) (p - s - 1) + 1; while (alfanum(s[(t - s)])) { cadd(&name, toupper_c(s[(t - s)])); - (t - s)++; + t++; } entry = entrynb(dico, spice_dstring_value(&name)); if (entry && (entry->tp == NUPA_SUBCKT)) {