Browse Source

* Fix in line 413 (gzopen call now with typecast in 2nd argument, now it
should compile perfectly again)

sg 25 years ago
parent
commit
f9d9c8aa0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fcl/inc/zstream.pp

+ 1 - 1
fcl/inc/zstream.pp

@@ -410,7 +410,7 @@ Const OpenStrings : array[TGZOpenMode] of pchar = ('rb','wb');
 
 begin
    FOpenMode:=FileMode;
-   FFile:=gzopen (Pchar(FileName),Openstrings[FileMode]);
+   FFile:=gzopen (PChar(FileName),PBytef(Openstrings[FileMode]));
    If FFile=Nil then
      Raise ezlibError.CreateFmt (SCouldntOpenFIle,[FileName]);
 end;