From 5e6fe75db6fc7ed9fe9a9f62311051e6c750e769 Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 22 Nov 2017 22:35:46 +0100 Subject: [PATCH] findsubname(), collect decrement operations --- src/frontend/numparam/spicenum.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/frontend/numparam/spicenum.c b/src/frontend/numparam/spicenum.c index 091dd7a01..49e383a8d 100644 --- a/src/frontend/numparam/spicenum.c +++ b/src/frontend/numparam/spicenum.c @@ -167,9 +167,7 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p) if (p[-1] == '}') { int nest = 1; - p--; - - while (p > s) { + while (--p > s) { if (p[-1] == '{') nest--; else if (p[-1] == '}') @@ -178,7 +176,6 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p) p--; break; } - p--; } p_end = p; /* p_end points to '{' */