| ??? 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? |
| Topic | Author | Date |
| 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 |



