summary refs log tree commit diff stats
path: root/lib/impure/zipfiles.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/impure/zipfiles.nim')
-rwxr-xr-xlib/impure/zipfiles.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/impure/zipfiles.nim b/lib/impure/zipfiles.nim
index c60847d48..62fe210d2 100755
--- a/lib/impure/zipfiles.nim
+++ b/lib/impure/zipfiles.nim
@@ -113,9 +113,9 @@ type
   PZipFileStream* = 
     ref TZipFileStream ## a reader stream of a file within a zip archive 
 
-proc fsClose(s: PZipFileStream) = zip_fclose(s.f)
-proc fsReadData(s: PZipFileStream, buffer: pointer, bufLen: int): int = 
-  result = zip_fread(s.f, buffer, bufLen)
+proc fsClose(s: PStream) = zip_fclose(PZipFileStream(s).f)
+proc fsReadData(s: PStream, buffer: pointer, bufLen: int): int = 
+  result = zip_fread(PZipFileStream(s).f, buffer, bufLen)
 
 proc newZipFileStream(f: PZipFile): PZipFileStream = 
   new(result)