mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Oops, scale int64 count into int32 count for swapper.
This commit is contained in:
parent
1bf9ebabcc
commit
3070c03fc0
1 changed files with 1 additions and 1 deletions
2
util.c
2
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:
|
||||
|
|
Loading…
Reference in a new issue