Commit 4ca2262ad61189276b2d95aab652a23c8db2a5b9

Anthony Green 2015-01-10T09:21:37

Merge pull request #159 from nobu/fix-void-arith x86: Fix void pointer arithmetic

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/x86/ffiw64.c b/src/x86/ffiw64.c
index 316f544..8a33a6c 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;