CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Anbody having trouble with long long in version 4.096?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








Anbody having trouble with long long in version 4.096?
PostPosted: Fri Aug 07, 2009 11:43 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Aug 07, 2009 11:49 am     Reply with quote

Post your PIC and post an example program.
Guest








PostPosted: Fri Aug 07, 2009 11:55 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Aug 07, 2009 12:29 pm     Reply with quote

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








PostPosted: Fri Aug 07, 2009 12:36 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Aug 07, 2009 1:36 pm     Reply with quote

Make sure you report it to CCS support as a bug.
Guest








PostPosted: Fri Aug 07, 2009 1:37 pm     Reply with quote

Done
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group