Branch: Tag:

2014-09-27

2014-09-27 13:03:47 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stdio.File: Support UNDEFINED as the first argument to read().

1387:    len=Pike_sp[-args].u.integer;    if(len<0)    Pike_error("Cannot read negative number of characters.\n"); +  if (!len && SUBTYPEOF(Pike_sp[-args])) { +  len = 0x7fffffff;    } -  +  }       if(args > 1 && !UNSAFE_IS_ZERO(Pike_sp+1-args))    {