summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.c b/stream.c
index 7aae2d5a..53e76afb 100644
--- a/stream.c
+++ b/stream.c
@@ -675,7 +675,7 @@ static val stdio_seek(val stream, val offset, enum strm_whence whence)
if (offset == zero && whence == strm_cur) {
return stdio_ftell(h->f);
} else {
- if (stdio_fseek(h->f, offset, whence) != negone) {
+ if (stdio_fseek(h->f, offset, whence)) {
utf8_decoder_init(&h->ud);
h->unget_c = nil;
return t;