Branch: Tag:

2014-10-28

2014-10-28 19:09:50 by Per Hedbor <ph@opera.com>

Added minimal argument checking to cast()

1066:   static void mpzmod_cast(INT32 args)   {    struct pike_string *s = sp[-args].u.string; -  pop_stack(); /* s have at least one more reference. */ +  if( args ) pop_stack(); /* s have at least one more reference. */       if( s == literal_int_string )    mpzmod_get_int(0);