Fix big endian build
authorAnton Blanchard <anton@samba.org>
Mon, 7 Nov 2011 13:16:26 +0000 (14:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 7 Nov 2011 13:16:26 +0000 (14:16 +0100)
commit823ba54bfc91f18fdd847e6efc41b422529bc4f8
tree6fd54a3b017a9df139f8b321027a44a75c72a03a
parentd0c814ececb7410e97d1a437e80fc2dfd5c6de38
Fix big endian build

I get the following error when building fio on PowerPC:

client.c: In function ‘convert_agg’:
client.c:641:22: error: invalid operands to binary & (have ‘long double’ and ‘long long unsigned int’)

It looks like we have things backwards, we should byteswap the
integer value before we convert it to a double.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
client.c