mahm150
Full Member level 1
- Joined
- Dec 14, 2010
- Messages
- 98
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Location
- Cairo, Egypt, Egypt
- Activity points
- 2,001
i have an error when i want to convert unsigned char to long int or unsigned int in codevision altough i check in promote char to int .
unsigned char data;
unsigned int long_data;
unsigned int address;
address+=1;
while(x<9)
{
data=EEprom_READ(address);
long_data = (long_data << x)|data ;
x+=8;
address-=1;
}
unsigned char data;
unsigned int long_data;
unsigned int address;
address+=1;
while(x<9)
{
data=EEprom_READ(address);
long_data = (long_data << x)|data ;
x+=8;
address-=1;
}