From 8ddf749ed51f91ffc20a3e548b328307f1513cae Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Tue, 4 Nov 2003 15:00:02 +0000 Subject: [PATCH] fix vm_do_read_memory_8() --- SheepShaver/src/kpx_cpu/src/cpu/vm.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SheepShaver/src/kpx_cpu/src/cpu/vm.hpp b/SheepShaver/src/kpx_cpu/src/cpu/vm.hpp index 154518a3..cd584317 100644 --- a/SheepShaver/src/kpx_cpu/src/cpu/vm.hpp +++ b/SheepShaver/src/kpx_cpu/src/cpu/vm.hpp @@ -109,7 +109,10 @@ static inline uint64 vm_do_read_memory_8(uint64 *a) ((uint64)b[1] << 48) | ((uint64)b[2] << 40) | ((uint64)b[3] << 32) | - (b[4] << 24) | (b[5] << 16) | (b[6] << 8) | b[7]; + ((uint64)b[4] << 24) | + ((uint64)b[5] << 16) | + ((uint64)b[6] << 8) | + ((uint64)b[7]); } static inline void vm_do_write_memory_8(uint64 *a, uint64 v)