On Fri, 5 Jun 2009, Michael Abbott wrote:
> I've just upgraded from 1.13.3 to 1.14.1, and there seem to be some
> unpleasant numerical features. First the serious breakage:
>
> 1.13.3:
> $ echo $((0x80000000))
> 2147483648
>
> 1.14.1:
> $ echo $((0x80000000))
> 2147483647
>
> Oops! This is pretty worrying, actually. I'll dig and try and figure
> it out, but I think a heads up is in order. Hopefully somebody who's
> been working on the shell recently can point me where too look.
Had to write this in a hurry. Here's the case that really burnt me:
1.13.3:
$ echo $((0x80000000 & 1))
0
1.14.1:
$ echo $((0x80000000 & 1))
1
$ echo $((2147483648 & 1))
1
Oh dear oh dear oh dear.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox