Просмотр исходного кода

* Use correct sizeof to check if entry size is large enough

Pierre Muller 2 лет назад
Родитель
Сommit
24acfb8064
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      compiler/entfile.pas

+ 1 - 1
compiler/entfile.pas

@@ -1260,7 +1260,7 @@ begin
       ppu_log('getrealsize(sizeofreal='+tostr(sizeofreal)+')='));
       inc_log_level;
 {$endif}
-      if entryidx+sizeof(floatx80_e)>entry.size then
+      if entryidx+sizeof(floatx80_ba)>entry.size then
        begin
          error:=true;
          result:=0;