Branch: Tag:

1999-03-23

1999-03-23 16:22:07 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

bugfixes

Rev: src/block_alloc.h:1.6
Rev: src/error.c:1.29
Rev: src/errors.h:1.3

18:   #include "operators.h"   #include "module_support.h"    - RCSID("$Id: error.c,v 1.28 1999/03/23 02:51:07 marcus Exp $"); + RCSID("$Id: error.c,v 1.29 1999/03/23 16:22:06 hubbe Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)
441:   void math_error(    char *func,    struct svalue *base_sp, int args, +  struct svalue *number,    char *desc, ...) ATTRIBUTE((noreturn,format (printf, 4, 5)))   {    INIT_ERROR(math); -  +  if(number) +  { +  ERROR_COPY_SVALUE(bad_arg, number); +  }else{ +  ERROR_STRUCT(bad_arg,o)->number.type=T_INT; +  ERROR_STRUCT(bad_arg,o)->number.subtype=NUMBER_UNDEFINED; +  ERROR_STRUCT(bad_arg,o)->number.u.integer=0; +  }    ERROR_DONE(generic);   }