From 6de51f3e04e496901ea1bd8f9b44f75c9f01b599 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sun, 26 Jul 2015 16:23:55 -0700 Subject: [PATCH] src/x86/ffiw64.c: Don't assign a "char *" to an "unsigned char *" Declare a local variable to match the type of the struct field assigned to it, rather than adding unsigned to the type. Fixes a -Wpointer-sign warning. --- 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 8a33a6c4..31e1d19c 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 }; - unsigned char *tramp = closure->tramp; + char *tramp = closure->tramp; if (cif->abi != FFI_WIN64) return FFI_BAD_ABI;