Stream Skip bug in 67b
Monkey Forums/Monkey Bug Reports/Stream Skip bug in 67b
| ||
from brl/stream.monkeyMethod Skip:Int( count:Int ) Local n:=0 While n<count Local t:=Read( _tmpbuf,Min( count-n,BUF_SZ ),0 ) If Not t And Eof() Throw New StreamReadError( Self ) n+=t Wend Return n End The order of arguments in the call to Read is incorrect (offset and count are reversed). |