Branch: Tag:

1999-10-22

1999-10-22 16:50:56 by Fredrik Noring <noring@nocrew.org>

Both sscanf and string->int casting works with bignums now.

Rev: src/bignum.c:1.5
Rev: src/bignum.h:1.6
Rev: src/modules/Gmp/mpz_glue.c:1.50
Rev: src/opcodes.c:1.46
Rev: src/stralloc.c:1.68

40:    error("Gmp.mpz conversion failed.\n");   }    + void convert_stack_top_with_base_to_bignum(void) + { +  resolve_auto_bignum_program(); +  apply_svalue(&auto_bignum_program, 2); +  +  if(sp[-1].type != T_OBJECT) +  error("Gmp.mpz conversion failed.\n"); + } +    int is_bignum_object(struct object *o)   {    resolve_auto_bignum_program();