diff options
Diffstat (limited to 'src/wasmrt.c')
| -rw-r--r-- | src/wasmrt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wasmrt.c b/src/wasmrt.c index c75d897..2fda952 100644 --- a/src/wasmrt.c +++ b/src/wasmrt.c @@ -1,9 +1,7 @@ #include <stdlib.h> -#include <SDL3/SDL_endian.h> #include <SDL3/SDL_error.h> #include <SDL3/SDL_log.h> -#include <SDL3/SDL_stdinc.h> #include "wasmrt.h" @@ -164,7 +162,7 @@ void wasm_rt_memory_load16v_unchecked(struct wasm_rt_memory_t const *mem, SDL_memcpy(values, mem->data + addr, sizeof(*values) * len); #else for (uint32_t i = 0; i < len; i++) { - SDL_memcpy(values + i, mem->data_end - addr - sizeof(*values) * i, + SDL_memcpy(values + i, mem->data_end - addr - sizeof(*values) * (i + 1), sizeof(*values)); } #endif |
