From: Jim Thoenen Date: Sun, 2 Feb 2014 07:52:50 +0000 (-0600) Subject: Oops, scale int64 count into int32 count for swapper. X-Git-Tag: xonotic-v0.8.0~13^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3070c03fc0df299df630d5bbaddc3b767b0a1566;p=xonotic%2Fgmqcc.git Oops, scale int64 count into int32 count for swapper. --- diff --git a/util.c b/util.c index bcffdcb..ba7db5f 100644 --- a/util.c +++ b/util.c @@ -117,7 +117,7 @@ void util_tolittleendianarray(void *_data, size_t length, unsigned int typesize) util_swap32((uint32_t*)_data, length); return; case 8: - util_swap64((uint32_t*)_data, length); + util_swap64((uint32_t*)_data, length<<1); /* swap64 operates on 32 bit words, thus scale to that length. */ return; default: