Branch: Tag:

2001-07-02

2001-07-02 11:21:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Allow _sprintf('t') to return zero in basetype().

Rev: src/builtin.cmod:1.55

1:   /* -*- c -*- -  * $Id: builtin.cmod,v 1.54 2001/07/02 10:43:39 grubba Exp $ +  * $Id: builtin.cmod,v 1.55 2001/07/02 11:21:09 grubba Exp $    */      #include "global.h"
54:    stack_swap();    pop_stack();    return; -  } +  } else if (IS_ZERO(Pike_sp-1)) { +  pop_stack(); +  push_constant_text("object"); +  return; +  } else {    Pike_error("Non-string returned from _sprintf()\n");    }    } -  +  }    pop_stack();    switch(t)    {