diff --git a/lang/m2/libm2/Streams.mod b/lang/m2/libm2/Streams.mod index a40133757..08b84cf4d 100644 --- a/lang/m2/libm2/Streams.mod +++ b/lang/m2/libm2/Streams.mod @@ -340,7 +340,7 @@ IMPLEMENTATION MODULE Streams; RETURN; END; IF s^.mode = reading THEN - position := position + LONG(s^.maxcnt - s^.cnt + 1); + position := position - LONG(s^.maxcnt - s^.cnt + 1); END; END GetPosition;