Forráskód Böngészése

* don't call blockwrite if there's nothing to write

git-svn-id: trunk@6166 -
Jonas Maebe 18 éve
szülő
commit
e1c994a3be
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      compiler/ppu.pas

+ 2 - 1
compiler/ppu.pas

@@ -836,7 +836,8 @@ end;
 
 procedure tppufile.writebuf;
 begin
-  if not crc_only then
+  if not crc_only and
+     (bufidx <> 0) then
     blockwrite(f,buf^,bufidx);
   inc(bufstart,bufidx);
   bufidx:=0;