summaryrefslogtreecommitdiff
path: root/compiler/ncgcon.pas
diff options
context:
space:
mode:
authorpaul <paul@3ad0048d-3df7-0310-abae-a5850022a9f2>2011-09-17 15:36:56 +0000
committerpaul <paul@3ad0048d-3df7-0310-abae-a5850022a9f2>2011-09-17 15:36:56 +0000
commit01a4f318988ba62756f3f8bf0be7beb755f7d52e (patch)
treed275ab569ee858dc2152c379c8fdda8087e2b4f6 /compiler/ncgcon.pas
parentb6ea9446e469aeddb48309780316654511d4e894 (diff)
downloadfpc-01a4f318988ba62756f3f8bf0be7beb755f7d52e.tar.gz
compiler: manual merge some cpstrnew changes which was impossible to merge using regular tools due to the merge conflicts
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19131 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/ncgcon.pas')
-rw-r--r--compiler/ncgcon.pas3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ncgcon.pas b/compiler/ncgcon.pas
index 69b3ae4135..3f26dc838e 100644
--- a/compiler/ncgcon.pas
+++ b/compiler/ncgcon.pas
@@ -304,7 +304,7 @@ implementation
if len=0 then
InternalError(2008032301) { empty string should be handled above }
else
- lastlabel:=emit_ansistring_const(current_asmdata.AsmLists[al_typedconsts],value_str,len);
+ lastlabel:=emit_ansistring_const(current_asmdata.AsmLists[al_typedconsts],value_str,len,tstringdef(resultdef).encoding);
end;
cst_unicodestring,
cst_widestring:
@@ -314,6 +314,7 @@ implementation
else
lastlabel := emit_unicodestring_const(current_asmdata.AsmLists[al_typedconsts],
value_str,
+ tstringdef(resultdef).encoding,
(cst_type=cst_widestring) and (tf_winlikewidestring in target_info.flags));
end;
cst_shortstring: