Branch: Tag:

2001-02-20

2001-02-20 13:02:12 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Various f_cast()-related fixes.

Rev: src/interpret_functions.h:1.47
Rev: src/module_support.c:1.40
Rev: src/modules/Gmp/mpz_glue.c:1.88
Rev: src/modules/files/file.c:1.212
Rev: src/opcodes.c:1.100
Rev: src/operators.c:1.124

1:   /* -  * $Id: interpret_functions.h,v 1.46 2001/02/20 00:01:00 grubba Exp $ +  * $Id: interpret_functions.h,v 1.47 2001/02/20 13:02:11 grubba Exp $    *    * Opcode definitions for the interpreter.    */
1395:   OPCODE0(F_SOFT_CAST, "soft cast")    /* Stack: type_string, value */   #ifdef PIKE_DEBUG -  if (Pike_sp[-2].type != T_STRING) { -  /* FIXME: The type should really be T_TYPE... */ -  fatal("Argument 1 to soft_cast isn't a string!\n"); +  if (Pike_sp[-2].type != T_TYPE) { +  fatal("Argument 1 to soft_cast isn't a type!\n");    }   #endif /* PIKE_DEBUG */    if (runtime_options & RUNTIME_CHECK_TYPES) {