|
Re: Nasty Compiler Bug
Matt,
I believe what happens is that because 90, 2, and 45 all fit in a char (it may only look at the 90), the compiler will use that size for all its intermediate results. (I'm not saying it's right. Just that's the way it is.)
90L/2*40 should work as you expect. (90L tells the compiler that the 90 is a long constant.)
|