diff options
Diffstat (limited to 'code')
-rw-r--r-- | code/qcommon/vm_interpreted.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/code/qcommon/vm_interpreted.c b/code/qcommon/vm_interpreted.c index 6aca00e..4359125 100644 --- a/code/qcommon/vm_interpreted.c +++ b/code/qcommon/vm_interpreted.c @@ -124,7 +124,11 @@ static char *opnames[256] = { #define loadWord(addr) __lwbrx(addr,0) #endif #else - #define loadWord(addr) LittleLong(*((int *)addr)) + static inline int loadWord(void *addr) { + int word; + memcpy(&word, addr, 4); + return LittleLong(word); + } #endif char *VM_Indent( vm_t *vm ) { |