Browse Source

nupa_assignment(), express some constness

pre-master-46
rlar 10 years ago
parent
commit
410e70b9b9
  1. 3
      src/frontend/numparam/xpressn.c

3
src/frontend/numparam/xpressn.c

@ -1419,7 +1419,6 @@ nupa_assignment(dico_t *dico, const char * const s, char mode)
*/ */
{ {
/* s has the format: ident = expression; ident= expression ... */ /* s has the format: ident = expression; ident= expression ... */
int ls;
const char *p = s; const char *p = s;
bool error, err; bool error, err;
nupa_type dtype; nupa_type dtype;
@ -1431,7 +1430,7 @@ nupa_assignment(dico_t *dico, const char * const s, char mode)
spice_dstring_init(&tstr); spice_dstring_init(&tstr);
spice_dstring_init(&ustr); spice_dstring_init(&ustr);
ls = (int) strlen(s);
const int ls = (int) strlen(s);
error = 0; error = 0;
while (((p - s) < ls) && (*p <= ' ')) while (((p - s) < ls) && (*p <= ' '))

Loading…
Cancel
Save