mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 13:49:17 +02:00
compiler: check left node to be ord const diring widechar/unicodechar to shortstring before executing the code related to tordconstn()
git-svn-id: trunk@19566 -
This commit is contained in:
parent
8feb3806b8
commit
435b72bcb1
@ -1082,6 +1082,7 @@ implementation
|
|||||||
else
|
else
|
||||||
if (tstringdef(resultdef).stringtype=st_shortstring) and
|
if (tstringdef(resultdef).stringtype=st_shortstring) and
|
||||||
(torddef(left.resultdef).ordtype=uwidechar) and
|
(torddef(left.resultdef).ordtype=uwidechar) and
|
||||||
|
(left.nodetype=ordconstn) and
|
||||||
(tcompilerwidechar(tordconstnode(left).value.uvalue) <= 127)
|
(tcompilerwidechar(tordconstnode(left).value.uvalue) <= 127)
|
||||||
then
|
then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user