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