hi,
Make i and bigVal as UInt32 and try it out.
srini
--- Mike McCollister <[EMAIL PROTECTED]>
wrote:
> Here is a strange thing that crashes my Palm:
>
> #define NUM_THINGS 12
> UInt16 bigVal;
>
> void fn(void)
> {
> Int16 i;
>
> // stuff done here to calculate i
>
> bigVal = i % NUM_THINGS; // crashes here
>
> // however this works but only if i is not too
> big
> bigVal = i;
> if(i >= NUM_THINGS)
> bigVal = i - NUM_THINGS;
>
> // stuff done here
> }
>
> Any ideas on why?
>
> Thanks,
>
> Mike McCollister
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail -
> only $35
> a year! http://personal.mail.yahoo.com/
>
> --
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/