Przeglądaj źródła

[cs] "fix" cs.io.NativeInput.seek

Dan Korostelev 10 lat temu
rodzic
commit
838cc6ceab
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      std/cs/io/NativeInput.hx

+ 2 - 2
std/cs/io/NativeInput.hx

@@ -66,14 +66,14 @@ class NativeInput extends Input
 
 	public function seek( p : Int, pos : sys.io.FileSeek ) : Void
 	{
-		var p = switch(pos)
+		var pos = switch(pos)
 		{
 			case SeekBegin: cs.system.io.SeekOrigin.Begin;
 			case SeekCur: cs.system.io.SeekOrigin.Current;
 			case SeekEnd: cs.system.io.SeekOrigin.End;
 		};
 
-		stream.Seek(cast(p, Int64), p);
+		stream.Seek(cast(p, Int64), pos);
 	}
 
 	public function tell() : Int