Browse Source

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

Pierre Muller 2 năm trước cách đây
mục cha
commit
24acfb8064
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;