mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 12:39:09 +02:00
* let def_cgsize() also recognise unicodestrings (avoid calling tdef.size)
git-svn-id: trunk@15741 -
This commit is contained in:
parent
06b383f576
commit
4ef0601906
@ -993,7 +993,7 @@ implementation
|
|||||||
end;
|
end;
|
||||||
stringdef :
|
stringdef :
|
||||||
begin
|
begin
|
||||||
if is_ansistring(def) or is_widestring(def) then
|
if is_ansistring(def) or is_wide_or_unicode_string(def) then
|
||||||
result := OS_ADDR
|
result := OS_ADDR
|
||||||
else
|
else
|
||||||
result:=int_cgsize(def.size);
|
result:=int_cgsize(def.size);
|
||||||
|
Loading…
Reference in New Issue
Block a user