[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Testbed-admins] STuck
On Tue, Feb 17, 2009 at 03:27:28PM -0500, Hussamuddin Nasir wrote:
> I am also working on this right now and have gone past that the problem is
>
> awk '{ printf "%d", $1*16777216+$2*65536+$3*256+$4 }'`
>
> the $1 2,3,4 have the correct values, its the addition and
> multiplication that screws things up
>
> for some reason it hits the max number limit of 2147483647
>
Hmm...guess we are running up against some sort of 32-bit signed arithmetic
problem, though it is not an obvious case of wrapping. Wonder why I didn't
use a shift operator there, does awk have one?