[Icc-avr] Re: sprintf limitation?

Andy Syms asyms at technosoft.co.uk
Mon Jul 7 07:55:31 PDT 2008


>  Thanks for the responses.  I found the problem:
>
> a = (VAL[0] - 48) * 10000;

Try using

a = (VAL[0] - 48) * 10000L;

to cause the expression to be evaluated as a long and not an int.


Andy.



More information about the Icc-avr mailing list