Author |
Message |
Topic: Issues with structures on 24F and v4.118 |
GregReadUK
Replies: 5
Views: 7031
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 11:04 am Subject: Issues with structures on 24F and v4.118 |
Thanks for the tips, *= 16 and #case.
Variable name co-incidence was a happy accident I hadn't even noticed. |
Topic: Issues with structures on 24F and v4.118 |
GregReadUK
Replies: 5
Views: 7031
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 8:33 am Subject: Issues with structures on 24F and v4.118 |
Many thanks for the detailed clarification. I can work around it for now by not using -=.
I agree that once test cases are known, automated test tools definitely help to ensure higher quality con ... |
Topic: Issues with structures on 24F and v4.118 |
GregReadUK
Replies: 5
Views: 7031
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 6:35 am Subject: Issues with structures on 24F and v4.118 |
This issue may be related to the -= operation on the structure member.
Changing to the code below makes it work as expected.
void a(MYSTRUCT *pStruct)
{
pStruct->a32var = 123;
pStruc ... |
Topic: Issues with structures on 24F and v4.118 |
GregReadUK
Replies: 5
Views: 7031
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 6:31 am Subject: Issues with structures on 24F and v4.118 |
Hi Folks,
I am encountering an issue with structures on a PIC24F and v4.118 of compiler (Pretty sure I saw this with a few earlier compiler versions too).
Simple code is below, I initialise st ... |
Topic: Error/Bug in == and != operators in 4.117 compiler on 24F? |
GregReadUK
Replies: 2
Views: 4351
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 4:58 am Subject: Fixed in 4.118 |
Just tried 4.118 and it is fixed. thanks.
Results are now..
What are the != and == operators doing?
DEVICE:PIC24FJ64GA004
COMPILER VERSION:4.118
ui1(0) == ui2(0)
ui1(0) == ui2(0)
si1(0) = ... |
Topic: Error/Bug in == and != operators in 4.117 compiler on 24F? |
GregReadUK
Replies: 2
Views: 4351
|
Forum: General CCS C Discussion Posted: Mon Jan 24, 2011 4:43 am Subject: Error/Bug in == and != operators in 4.117 compiler on 24F? |
Hi Folks.
I am encountering a major problem in the latest compiler version 4.117. The != and == operators don't work as expected, e.g. 0 != 0.
Only tested on DEVICE:PIC24FJ64GA004
COMPILER VER ... |
|