mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-06 07:49:38 +01:00
* fixed typecast error in last char/widechar/widestring patch
git-svn-id: trunk@8358 -
This commit is contained in:
parent
6f9c7ede62
commit
30e618ccb6
@ -893,7 +893,8 @@ implementation
|
||||
begin
|
||||
result:=nil;
|
||||
if (left.nodetype=stringconstn) and
|
||||
((tstringdef(left.resultdef).stringtype<>st_widestring) or
|
||||
((not is_widechararray(left.resultdef) and
|
||||
not is_widestring(left.resultdef)) or
|
||||
(tstringdef(resultdef).stringtype=st_widestring) or
|
||||
{ non-ascii chars would be replaced with '?' -> loses info }
|
||||
not hasnonasciichars(pcompilerwidestring(tstringconstnode(left).value_str))) then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user