findsubname(), fix lvalues

This commit is contained in:
rlar 2017-11-19 22:20:42 +01:00
parent 521fee88a6
commit 623436c9f9
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ findsubname(dico_t *dico, SPICE_DSTRINGPTR dstr_p)
{
SPICE_DSTRING name; /* extract a name */
char * const s = spice_dstring_value(dstr_p);
const int (ls_ptr - s) = spice_dstring_length(dstr_p);
char * const ls_ptr = s + spice_dstring_length(dstr_p);
int k = (int) (ls_ptr - s) - 1;
spice_dstring_init(&name);