View previous topic :: View next topic |
Author |
Message |
Guest
|
Anbody having trouble with long long in version 4.096? |
Posted: Fri Aug 07, 2009 11:43 am |
|
|
I downloaded version 4.096 of the PCWHD compiler, and long long data types are being stored and treated as only two bytes.
This is happening on code that previously compiled without warnings and treated long long as 32 bits.
Anybody else having this problem, or am I doing something stupid? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Aug 07, 2009 11:49 am |
|
|
Post your PIC and post an example program. |
|
|
Guest
|
|
Posted: Fri Aug 07, 2009 11:55 am |
|
|
Thanks for the quick response.
18F26K20
In the code:
Code: | unsigned long long sleep_timer=0; |
from the symbol file:
Code: | 036-037 sleep_timer |
You can see it is only two bytes.
If I insert uint32 it works, but now we have to go back and change a ton of production code. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Aug 07, 2009 12:29 pm |
|
|
I tried it and got the same problem. The easiest solution would be to roll
back to vs. 4.095. I did that, and it works. |
|
|
Guest
|
|
Posted: Fri Aug 07, 2009 12:36 pm |
|
|
Thanks for confirming. We are going to roll back to 4.095 until there is a fix. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Aug 07, 2009 1:36 pm |
|
|
Make sure you report it to CCS support as a bug. |
|
|
Guest
|
|
Posted: Fri Aug 07, 2009 1:37 pm |
|
|
Done |
|
|
|