Explorar o código

* Patch from Ondrej Pokorny, fixing range error

git-svn-id: trunk@35519 -
michael %!s(int64=8) %!d(string=hai) anos
pai
achega
d2a1e8f9de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/fcl-pdf/src/fpttfsubsetter.pp

+ 1 - 1
packages/fcl-pdf/src/fpttfsubsetter.pp

@@ -1092,7 +1092,7 @@ begin
 
   // update head.ChecksumAdjustment field
   head.Seek(8, soBeginning);
-  WriteInt32(head, checksum);
+  WriteInt32(head, Int32(checksum));
 
   // write table bodies
   WriteTableBodies(AStream, tables);