Procházet zdrojové kódy

* fix msgtxt array size if the text size is an exact multiple of 240

git-svn-id: trunk@41725 -
Jonas Maebe před 6 roky
rodič
revize
1bb8bd471a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      compiler/utils/msg2inc.pp

+ 1 - 1
compiler/utils/msg2inc.pp

@@ -411,7 +411,7 @@ begin
   writeln(t,');');
   close(t);
 {update arraysize}
-  s:=l0(msgsize div maxslen); { we start with 0 }
+  s:=l0((msgsize-1) div maxslen); { we start with 0 }
   assign(f,fn);
   reset(f,1);
   seek(f,22+34+2*eollen+2*length(constname));