mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-03 14:49:33 +01:00
* fixed r34439 for big endian
git-svn-id: trunk@34444 -
This commit is contained in:
parent
473cec9d85
commit
997a958f72
@ -1042,14 +1042,14 @@ function get_next_varsym(def: tabstractrecorddef; const SymList:TFPHashObjectLis
|
||||
ftcb.emit_tai(tai_const.create_8bit(setval),def);
|
||||
2:
|
||||
begin
|
||||
if source_info.endian<>target_info.endian then
|
||||
if target_info.endian=endian_big then
|
||||
setval:=swap(word(setval));
|
||||
ftcb.emit_tai(tai_const.create_16bit(setval),def);
|
||||
end;
|
||||
4:
|
||||
begin
|
||||
if source_info.endian<>target_info.endian then
|
||||
setval:=swap(setval);
|
||||
if target_info.endian=endian_big then
|
||||
setval:=swap(word(setval)) shl 16 or (swap(word(setval shr 16)));
|
||||
ftcb.emit_tai(tai_const.create_32bit(setval),def);
|
||||
end;
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user