Skip to content

Commit

Permalink
circumvent Delphi 5 compilation issues (mainly Internal Error C1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Mar 1, 2019
1 parent 9b33e43 commit a594176
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 92 deletions.
5 changes: 2 additions & 3 deletions SyNode/SyNodeBinding_fs.pas
Expand Up @@ -590,10 +590,9 @@ function fs_loadFileToBuffer(cx: PJSContext; argc: uintN; var vp: jsargRec): Boo
else
begin
size := FileSize(filePath);
if Int64Rec(size).Hi > 0 then
if PInt64Rec(@size)^.Hi > 0 then
raise ESMException.Create('file to large');

arr := cx.NewArrayBuffer(Int64Rec(size).Lo);
arr := cx.NewArrayBuffer(PInt64Rec(@size)^.Lo);
arr_data := arr.GetArrayBufferData;
fFileStream := TFileStream.Create(filePath, fmOpenRead or fmShareDenyNone);
try
Expand Down

0 comments on commit a594176

Please sign in to comment.