Typecasting complex type does not work

List of known bugs
Locked
Author
Message
User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Typecasting complex type does not work

#1 Post by zristic » 20 Mar 2006 09:20

Bug ID: #060320001
Submitted by: Dejan

Severity: Moderate
Status: Fixed in v5.03.

Description:
Typecasting complex types such as an array element does not work

Code: Select all

  MyRealVar := Real(MyWordArray[i]);
Workaround:
Typecasting is not really needed in this case, compiler will do it correctly by performing implicit typecast:

Code: Select all

  MyRealVar := MyWordArray[i]; <- implicit typecast by the compiler

Locked

Return to “mikroPascal Bug List”