Browse Source

getexpress(), transform pscopy(,x,y,) --> pscopy(,x+y,y-y,) (requirement strlen(x) >= y to be verified later)

pre-master-46
rlar 10 years ago
parent
commit
7509fa17da
  1. 2
      src/frontend/numparam/xpressn.c

2
src/frontend/numparam/xpressn.c

@ -1408,7 +1408,7 @@ getexpress(const char * const s, SPICE_DSTRINGPTR tstr_p, const char **pi)
tpe = NUPA_REAL;
}
pscopy(tstr_p, s, (int)(ia_ptr - s)-1, (int) (iptr - ia_ptr));
pscopy(tstr_p, ia_ptr - 1, 0, (int) (iptr - ia_ptr));
if (iptr[-1] == '}')
iptr++;

Loading…
Cancel
Save