merge r17327 from cpstrnew branch by michael:

* Patch from Inoussa to fix first test case

git-svn-id: trunk@19105 -
This commit is contained in:
paul 2011-09-17 13:04:50 +00:00
parent 9e0ad7baae
commit fbc01291c4

View File

@ -1431,6 +1431,21 @@ implementation
addstatement(newstat,ctemprefnode.create(restemp));
result:=newblock;
end
else if tstringdef(resultdef).stringtype=st_ansistring then
begin
result:=ccallnode.createinternres(
'fpc_pwidechar_to_'+tstringdef(resultdef).stringtypname,
ccallparanode.create(
cordconstnode.create(
tstringdef(resultdef).encoding,
u16inttype,
true
),
ccallparanode.create(left,nil)
),
resultdef
);
end
else
result := ccallnode.createinternres(
'fpc_pwidechar_to_'+tstringdef(resultdef).stringtypname,