Branch: Tag:

2015-04-17

2015-04-17 15:31:53 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Type checker: Fixed minor bug in match_type_svalue() for strings.

All strings matched the type string(zero) instead of just the empty string.

Fixes [CID 1294694].

6206:    sub = type->car;    if (sub->type == T_ZERO)    { -  res = sval->u.string->len == 0; +  res = (sval->u.string->len == 0); +  break;    }    else if( sub->type == PIKE_T_INT )    {