From af0ba9bed5f2048bbc6b0730f308c0484eb6eb29 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 10 Oct 2015 16:23:25 +0200 Subject: [PATCH] xpressn.c, fetchid(), #1/15 swap arguments --- src/frontend/numparam/xpressn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/numparam/xpressn.c b/src/frontend/numparam/xpressn.c index bf9fe5840..d9a102387 100644 --- a/src/frontend/numparam/xpressn.c +++ b/src/frontend/numparam/xpressn.c @@ -696,7 +696,7 @@ parseunit(const char *s) static const char * -fetchid(SPICE_DSTRINGPTR t, const char *s_end, const char *iptr) +fetchid(SPICE_DSTRINGPTR t, const char *iptr, const char *s_end) /* copy next identifier from s into t, advance and return scan index i */ { char c; @@ -1053,7 +1053,7 @@ formula(dico_t *dico, const char *s, const char *s_end, bool *perror) s = kptr; fu = 0; } else if (alfa(c)) { - s = fetchid(&tstr, s_end, s); /* user id, but sort out keywords */ + s = fetchid(&tstr, s, s_end); /* user id, but sort out keywords */ state = S_atom; { fu = keyword(fmathS, spice_dstring_value(&tstr)); /* numeric function? */