mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-26 14:30:33 +02:00
* limited storage to 2e9 so it causes no wrap around on big machines
git-svn-id: trunk@819 -
This commit is contained in:
parent
2d606f52f3
commit
d1233afc48
@ -15,7 +15,7 @@ type
|
||||
|
||||
var p:pointer;
|
||||
l : ^longarray;
|
||||
size, storage : longint;
|
||||
size, storage : cardinal;
|
||||
i,j:longint;
|
||||
done:boolean;
|
||||
mem : sizeint;
|
||||
@ -27,6 +27,8 @@ begin
|
||||
repeat
|
||||
size := round(size * 1.1);
|
||||
storage := size * sizeof(real);
|
||||
if storage>2000000000 then
|
||||
storage:=2000000000;
|
||||
writeln('size=',size,' (storage=',storage,')');
|
||||
getmem(l,storage);
|
||||
if (l=nil) then
|
||||
|
Loading…
Reference in New Issue
Block a user