diff options
-rw-r--r-- | stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2092,7 +2092,7 @@ static val string_in_seek(val stream, val off, enum strm_whence whence) lit("~a: ~s: negative position ~s disallowed"), self, stream, pos, nao); - if (gt(pos, len ? len : length_str(s->string))) + if (gt(pos, len ? len : (len = length_str(s->string)))) uw_throwf(file_error_s, lit("~a: ~s: position ~s lies beyond string length ~s"), self, stream, pos, len, nao); |