Browse Source

nupa_subcktcall(), spice_dstring_value(&tstr) ==> t_p

t_p is const and tstr hasn't been modified either,
thus still the same value.
pre-master-46
rlar 10 years ago
parent
commit
742f34f596
  1. 4
      src/frontend/numparam/xpressn.c

4
src/frontend/numparam/xpressn.c

@ -1643,10 +1643,10 @@ nupa_subcktcall(dico_t *dico, char *s, char * const x, char * const inst_name)
int h = k;
while (t_p[k] > ' ')
k++;
pscopy(&ustr, spice_dstring_value(&tstr), h, k - h);
pscopy(&ustr, t_p, h, k - h);
j = k;
} else if (t_p[k] == '{') {
char *aux = spice_dstring_value(&tstr);
char *aux = t_p;
const char *tmp = aux + j;
tmp = getexpress(NULL, &ustr, tmp);
j = (int) (tmp - aux);

Loading…
Cancel
Save