Delphi 10.3.3 compiler error. Incompatible types #4

Open
opened 2022-10-26 05:47:16 +00:00 by 3ddark · 1 comment
3ddark commented 2022-10-26 05:47:16 +00:00 (Migrated from github.com)

Hello Benjamin,
try compile Delphi 10.3.3 compiler give an error. Incompatible types: 'AnsiChar' and 'Char'

If cast chr function to AnsiChar compile successfully completed
like this
result[l]:=AnsiChar(chr((c shr 16) and $ff));

Hello Benjamin, try compile Delphi 10.3.3 compiler give an error. Incompatible types: 'AnsiChar' and 'Char' If cast chr function to AnsiChar compile successfully completed like this result[l]:=**AnsiChar(chr((c shr 16) and $ff));**
ExerciseBook commented 2022-10-26 06:04:36 +00:00 (Migrated from github.com)

in higher version pascal, Char has different meaning from AnsiChar.

you may try result[l]:=AnsiChar((c shr 16) and $ff));

in higher version pascal, `Char` has different meaning from `AnsiChar`. you may try `result[l]:=AnsiChar((c shr 16) and $ff));`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BeRo1985/pashtmldown#4
No description provided.