public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
085f346
)
Fixed very old bug where Streams.GetStreamPosition would return the wrong position...
author
dtrg
<none@none>
Wed, 1 Sep 2010 19:55:15 +0000
(19:55 +0000)
committer
dtrg
<none@none>
Wed, 1 Sep 2010 19:55:15 +0000
(19:55 +0000)
lang/m2/libm2/Streams.mod
patch
|
blob
|
history
diff --git
a/lang/m2/libm2/Streams.mod
b/lang/m2/libm2/Streams.mod
index
a401337
..
08b84cf
100644
(file)
--- 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;