Branch: Tag:

2016-01-26

2016-01-26 21:08:15 by Martin Nilsson <nilsson@fastmail.com>

SIMPLE_TOO_FEW_ARGS_ERROR should be SIMPLE_WRONG_NUM_ARGS_ERROR since long ago. Replaced them and tighten up argument control in places.

562:    int arg=1;       if (args<1) -  SIMPLE_TOO_FEW_ARGS_ERROR("image->paste_alpha_color",1); +  SIMPLE_WRONG_NUM_ARGS_ERROR("image->paste_alpha_color",1);    if (TYPEOF(sp[-args]) != T_OBJECT    || !sp[-args].u.object    || !(mask=get_storage(sp[-args].u.object,image_program)))