mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-05 16:38:25 +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
|
||||
do not convert enums,booleans,char }
|
||||
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
|
||||
begin
|
||||
inserttypeconv(right,sinttype);
|
||||
|
Loading…
Reference in New Issue
Block a user