Unified · Split
| @@ -171,8 +171,10 @@ Iobuf.seek(b: self ref Iobuf, off: big, start: int): big · 170 unmodified lines | |||
| 171 | return big ERROR; | 171 | return big ERROR; |
| 172 | b.size = 0; | 172 | b.size = 0; |
| 173 | b.index = 0; | 173 | b.index = 0; |
| 174 | if ((s := sys->seek(b.fd, off, start)) < big 0) | 174 | if ((s := sys->seek(b.fd, off, start)) < big 0) { |
| 175 | b.bufpos = b.filpos; | ||
| 175 | return big ERROR; | 176 | return big ERROR; |
| 177 | } | ||
| 176 | b.bufpos = b.filpos = s; | 178 | b.bufpos = b.filpos = s; |
| 177 | return s; | 179 | return s; |
| 178 | } | 180 | } |
Binary file not shown.