Assignment to complex type fails in some cases

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

Assignment to complex type fails in some cases

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

Bug ID: #060320002
Submitted by: Rackley

Severity: Moderate
Status: Fixed in v5.03.

Description:
Assignment to complex types larger than byte fails:

Code: Select all

  MyWordArray[i] := 123; <- only lower byte of MyWordArray[i] is updated
Workaround:
Typecasting solves the problem:

Code: Select all

  MyWordArray[i] := word(123);

Locked

Return to “mikroPascal Bug List”