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

type conversion error

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







type conversion error
PostPosted: Wed Apr 25, 2007 8:20 am     Reply with quote

Hello!

I was changed my compiler version 4.018 to 4.032 and have problem with this line: *(&jacklog[i]+t)=v;
Invalid type conversion.

typedef struct {
int32 nyermins;
int32 nyermaxs;
int32 nyeres;
int8 megnyerve;
int8 fizetve;
} nyertabla ;

nyertabla tabla[10];
int8 v;

for(i=0;i<5;i++){
for(t=0;t<12;t++){
v=read_ext_eeprom(JACKPOT_OUT_LOG+(i*12)+t);
*(&jacklog[i]+t)=v;
}//for t
}//for i

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Apr 25, 2007 12:12 pm     Reply with quote

Quote:
I was changed my compiler version 4.018 to 4.032 and have
problem with this line: *(&jacklog[i]+t)=v;
Invalid type conversion.

CCS changed the behavior of the "address of" starting with vs. 4.021.
That's probably the cause of your problem. Read these threads:
http://www.ccsinfo.com/forum/viewtopic.php?t=27714&start=196
http://www.ccsinfo.com/forum/viewtopic.php?t=30461
http://www.ccsinfo.com/forum/viewtopic.php?t=30393
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