mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-03 21:18:33 +02:00
* don't reuse the same type with the typed const builder for
differently-sized types git-svn-id: trunk@35153 -
This commit is contained in:
parent
691c2d655e
commit
d8c4980b2e
@ -631,16 +631,25 @@ implementation
|
|||||||
otUByte,otUWord,otULong,otUByte,
|
otUByte,otUWord,otULong,otUByte,
|
||||||
otSByte,otSWord,otSLong,otSByte,
|
otSByte,otSWord,otSLong,otSByte,
|
||||||
otUByte,otUWord,otUByte);
|
otUByte,otUWord,otUByte);
|
||||||
|
var
|
||||||
|
elesize: string[1];
|
||||||
begin
|
begin
|
||||||
write_header(tcb,def,typekind);
|
write_header(tcb,def,typekind);
|
||||||
|
case trans[def.ordtype] of
|
||||||
|
otUQWord,
|
||||||
|
otSQWord:
|
||||||
|
elesize:='8'
|
||||||
|
else
|
||||||
|
elesize:='4'
|
||||||
|
end;
|
||||||
tcb.begin_anonymous_record(
|
tcb.begin_anonymous_record(
|
||||||
internaltypeprefixName[itp_rtti_ord_outer],
|
internaltypeprefixName[itp_rtti_ord_outer]+elesize,
|
||||||
defaultpacking,reqalign,
|
defaultpacking,reqalign,
|
||||||
targetinfos[target_info.system]^.alignment.recordalignmin,
|
targetinfos[target_info.system]^.alignment.recordalignmin,
|
||||||
targetinfos[target_info.system]^.alignment.maxCrecordalign);
|
targetinfos[target_info.system]^.alignment.maxCrecordalign);
|
||||||
tcb.emit_ord_const(byte(trans[def.ordtype]),u8inttype);
|
tcb.emit_ord_const(byte(trans[def.ordtype]),u8inttype);
|
||||||
tcb.begin_anonymous_record(
|
tcb.begin_anonymous_record(
|
||||||
internaltypeprefixName[itp_rtti_ord_inner],
|
internaltypeprefixName[itp_rtti_ord_inner]+elesize,
|
||||||
defaultpacking,reqalign,
|
defaultpacking,reqalign,
|
||||||
targetinfos[target_info.system]^.alignment.recordalignmin,
|
targetinfos[target_info.system]^.alignment.recordalignmin,
|
||||||
targetinfos[target_info.system]^.alignment.maxCrecordalign);
|
targetinfos[target_info.system]^.alignment.maxCrecordalign);
|
||||||
|
Loading…
Reference in New Issue
Block a user