Branch: Tag:

2017-01-04

2017-01-04 16:27:59 by Martin Nilsson <nilsson@fastmail.com>

Returning UNDEFINED from addition lfuns is now an error.

1399:    call_lhs_lfun(LFUN_ADD_EQ,2))    return 1; /* optimized version of +. */    if(call_lfun(LFUN_ADD, LFUN_RADD)) -  return 1; /* standard editon */ +  return !IS_UNDEFINED(sp-1);    }       if (TYPEOF(sp[-2]) != TYPEOF(sp[-1]))
1598:    if(!pair_add())    {    Pike_error("Addition on unsupported types: %s + %s\nm", -  get_name_of_type(TYPEOF(sp[-1])), +  get_name_of_type(TYPEOF(*(s+e))),    get_name_of_type(TYPEOF(*s)));    }    }