pchar(word) cast is allowed
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
When you typecast a word to a pchar you only get a warning that conversion between ordinals and pointers is not portable. In this case, it is already broken (without even porting it), win32 has 32 bit pointers, not 16 bit.
Good old (stable) fpc 1.0.x correctly indentifies this as an error.
Additional information:
Reporter: Vincent Snijders
EMail: vslist at zonnet dot nl
Mantis conversion info:
- Mantis ID: 5372
- OS: Win32
- Version: 1.9.5
- Fixed in version: 1.9.5