Endian fix.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1199 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2005-08-05 18:50:07 +00:00
parent 65f5f857dc
commit eb69ef9547

View file

@ -216,7 +216,7 @@ void Sys_UnloadDLL(void *handle)
// ------------------------- * QVM files * -------------------------
#define VM_MAGIC 0x12721444
#define LL LittleLong
#define LL(x) x = LittleLong(x)
#pragma pack(push,1)
typedef struct vmHeader_s
@ -388,6 +388,7 @@ qvm_t *QVM_Load(const char *name, sys_callex_t syscall)
LL(header->instructionCount);
LL(header->codeOffset);
LL(header->codeLength);
LL(header->dataOffset);
LL(header->dataLength);
LL(header->litLength);
LL(header->bssLength);