defsubckt(), fix lvalue
This commit is contained in:
parent
6d285d927a
commit
1a44e4fb42
|
|
@ -515,16 +515,16 @@ defsubckt(dico_t *dico, struct card *card, nupa_type categ)
|
||||||
|
|
||||||
const char * const ls_ptr = s + strlen(s);
|
const char * const ls_ptr = s + strlen(s);
|
||||||
const char *i_ptr;
|
const char *i_ptr;
|
||||||
(i_ptr - s) = 0;
|
i_ptr = s;
|
||||||
|
|
||||||
while (((i_ptr - s) < (ls_ptr - s)) && (s[(i_ptr - s)] != '.'))
|
while (((i_ptr - s) < (ls_ptr - s)) && (s[(i_ptr - s)] != '.'))
|
||||||
(i_ptr - s)++; /* skip 1st dotword */
|
i_ptr++; /* skip 1st dotword */
|
||||||
|
|
||||||
while (((i_ptr - s) < (ls_ptr - s)) && (s[(i_ptr - s)] > ' '))
|
while (((i_ptr - s) < (ls_ptr - s)) && (s[(i_ptr - s)] > ' '))
|
||||||
(i_ptr - s)++;
|
i_ptr++;
|
||||||
|
|
||||||
while (((i_ptr - s) < (ls_ptr - s)) && (s[(i_ptr - s)] <= ' '))
|
while (((i_ptr - s) < (ls_ptr - s)) && (s[(i_ptr - s)] <= ' '))
|
||||||
(i_ptr - s)++; /* skip blank */
|
i_ptr++; /* skip blank */
|
||||||
|
|
||||||
j = (int) (i_ptr - s);
|
j = (int) (i_ptr - s);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue