mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 21:58:32 +01:00
LCL: don't use integer to compare FilerSignature, but array[1..4] of char, fixes maybe some little-endian, bigendian problem.
git-svn-id: trunk@11758 -
This commit is contained in:
parent
c6dcda57b3
commit
8aeeda739e
@ -3441,11 +3441,11 @@ end;
|
||||
|
||||
procedure TLRSObjectReader.BeginRootComponent;
|
||||
var
|
||||
Signature: LongInt;
|
||||
Signature: Array[1..4] of Char;
|
||||
begin
|
||||
{ Read filer signature }
|
||||
Read(Signature,4);
|
||||
if Signature <> LongInt(FilerSignature) then
|
||||
if Signature <> FilerSignature then
|
||||
raise EReadError.Create('Invalid Filer Signature');
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user