Consider this code: ULong answer; int valueA; Word valueB;
answer -= (valueA * valueB); (note the "minus equals") How does the compiler know what type to make the answer of the multiplication? If valueA = 660 and valueB = 100, the answer is larger than an int. Will the complier automatically use a long int to store the answer before doing the subtraction? I have a feeling that this is causing an overflow problem in my code. Thanks, Mike -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
