On 13 August 2013 14:07, Michael Büsch <m...@bues.ch> wrote: > I think you first have to cast to signed 32-bit and then to signed 64-bit.
A far as I can see the fix is to cast the delta to signed-32 explicitly rather than to "signed long" The point of the original email was not to pursue the particular bug that I have but to address the issue that there being many more casts to "long" that also might not do the expected thing in a 64-bit system (where "long" is 64 bits rather than the 32-bits that they probably were when the code was written.) A secondary question is why the behaviour in Codepad is so different to what is seen in my code. -- atp If you can't fix it, you don't own it. http://www.ifixit.com/Manifesto ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers