pike.git / src / interpreter.h

version» Context lines:

pike.git/src/interpreter.h:1300: Inside #if defined(PIKE_DEBUG)
   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)) {    /* 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) || +  if (!pike_types_le(sval_type, weak_type_string) ||    !match_types(sval_type, sp[-2].u.string)) {    struct pike_string *t1;    struct pike_string *t2;    ONERROR tmp1;    ONERROR tmp2;       t1 = describe_type(sp[-2].u.string);    SET_ONERROR(tmp1, do_free_string, t1);       t2 = describe_type(sval_type);