mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-10 10:26:17 +02:00
* allow widechar for indexing arrays, fixes 4115
git-svn-id: trunk@497 -
This commit is contained in:
parent
297f33b6c9
commit
05c241072e
@ -652,7 +652,7 @@ implementation
|
|||||||
{ maybe type conversion for the index value, but
|
{ maybe type conversion for the index value, but
|
||||||
do not convert enums,booleans,char }
|
do not convert enums,booleans,char }
|
||||||
if (right.resulttype.def.deftype<>enumdef) and
|
if (right.resulttype.def.deftype<>enumdef) and
|
||||||
not(is_char(right.resulttype.def)) and
|
not(is_char(right.resulttype.def) or is_widechar(right.resulttype.def)) and
|
||||||
not(is_boolean(right.resulttype.def)) then
|
not(is_boolean(right.resulttype.def)) then
|
||||||
begin
|
begin
|
||||||
inserttypeconv(right,sinttype);
|
inserttypeconv(right,sinttype);
|
||||||
|
Loading…
Reference in New Issue
Block a user