Skip to content

Commit

Permalink
bss not converted from littleendian to host endian
Browse files Browse the repository at this point in the history
  • Loading branch information
jnz committed Sep 22, 2018
1 parent 4a17b18 commit 5d4732e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/vm/vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,7 @@ static const vmHeader_t* VM_LoadQVM(vm_t* vm, const uint8_t* bytecode,
if (LittleLong(header.h->vmMagic) == VM_MAGIC)
{
/* byte swap the header */
/* sizeof( vmHeader_t ) - sizeof( int ) is the 1.32b vm header size */
for (i = 0; i < (int)(sizeof(vmHeader_t) - sizeof(int)) / 4; i++)
for (i = 0; i < (int)(sizeof(vmHeader_t)) / 4; i++)
{
((int*)header.h)[i] = LittleLong(((int*)header.h)[i]);
}
Expand Down

0 comments on commit 5d4732e

Please sign in to comment.