Sfoglia il codice sorgente

Fixed Pos()

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7631 8c9fc860-2736-0410-a75d-ab315db34111
eth.metacore 7 anni fa
parent
commit
991362d3f9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      source/Streams64.Mod

+ 1 - 1
source/Streams64.Mod

@@ -587,7 +587,7 @@ TYPE
 	(** Current read position. *)
 	(** Current read position. *)
 		PROCEDURE Pos*( ): HUGEINT;
 		PROCEDURE Pos*( ): HUGEINT;
 		BEGIN
 		BEGIN
-			RETURN received - HUGEINT(tail) - HUGEINT(head)
+			RETURN received - (tail - head)
 		END Pos;
 		END Pos;
 
 
 		(** -- Read raw binary data -- *)
 		(** -- Read raw binary data -- *)