From 5f8881a5913a9554cbc2b5fed7057627b9bb9ece Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 22 Dec 2014 17:08:08 +0900 Subject: [PATCH] x86: Fix void pointer arithmetic --- src/x86/ffiw64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x86/ffiw64.c b/src/x86/ffiw64.c index 316f544d..8a33a6c4 100644 --- a/src/x86/ffiw64.c +++ b/src/x86/ffiw64.c @@ -190,7 +190,7 @@ ffi_prep_closure_loc (ffi_closure* closure, /* nopl (%rax) */ 0x0f, 0x1f, 0x00 }; - void *tramp = closure->tramp; + unsigned char *tramp = closure->tramp; if (cif->abi != FFI_WIN64) return FFI_BAD_ABI;