pike.git / src / interpreter.h

version» Context lines:

pike.git/src/interpreter.h:1295:    CASE(F_SOFT_CAST);    /* Stack: type_string, value */   #ifdef PIKE_DEBUG    if (sp[-2].type != T_STRING) {    /* FIXME: The type should really be T_TYPE... */    fatal("Argument 1 to soft_cast isn't a string!\n");    }   #endif /* PIKE_DEBUG */    if (runtime_options & RUNTIME_CHECK_TYPES) {    struct pike_string *sval_type = get_type_of_svalue(sp-1); -  if (!pike_types_le(sval_type, sp[-2].u.string) { +  if (!pike_types_le(sval_type, sp[-2].u.string)) {    /* get_type_from_svalue() doesn't return a fully specified type    * for array, mapping and multiset, so we perform a more lenient    * check for them.    */    if (!pike_types_le(sval_type, weak_type_type_string) ||    !match_types(sval_type, sp[-2].u.string)) {    struct pike_string *t1;    struct pike_string *t2;    ONERROR tmp1;    ONERROR tmp2;