Hi - I've been trying to find a list of the data types for AVR-GCC and their associated bit lengths, but I just can't. Can anybody point me in the right direction? Thanks!
edit: I might as well bring up the code that is causing me issues:
servotimer = travelstart + ((signed long)(travelcounter * traveltotal))/travelsteps;
where servotimer is an unsigned int, travelstart is an unsigned int, travelcounter is an unsigned char, traveltotal is a signed int, and travelsteps is an unsigned char. I'm getting wierd output from this line of code, and I believe somehow the data type is getting overloaded - but with an int being only 16b, I don't see how it's possible that multiplying it by an 8b char would overload a 32b data type.