Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/19/01 21:26
Read: times


 
#14221 - RE: converting variable types
address = (channel * 25) + 22, where address is configured as unsigned int, and channel as unsigned char.

Maybe the (channel*25) calculation is being performed entirely in 8-bit (char) arithmetic - effictevely modulo 255?
Try casting 'channel' to unsigned int?

List of 13 messages in thread
TopicAuthorDate
converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      
RE: Andy            01/01/70 00:00      
RE: converting variable types            01/01/70 00:00      

Back to Subject List