From: Radu R. <rad...@cl...> - 2012-12-18 17:10:49
|
On Tue, 2012-12-18 at 10:29 -0600, Peter Bigot wrote: > Yes, it's obviously sign-extending the pointers and doing a 32-bit > subtraction. I have a recollection that how mspgcc treated pointers > (signed/unsigned) changed sometime during the 4.7 development cycle. > > mspgcc-20120911 appears to do the right thing and generates a simple > 16-bit subtract. Hi Peter, Thanks for the fast answer! Casting the pointers to "unsigned int" before subtracting seems to be a valid workaround to the problem. Is there any chance of getting the right behaviour in 20120406, since it's supposed to be "LTS" ? Thanks, Radu |