Alien address offsets are byte offsets.
authorMatt Birkholz <matt@birkholz.chandler.az.us>
Sat, 5 Jun 2010 16:01:04 +0000 (09:01 -0700)
committerMatt Birkholz <matt@birkholz.chandler.az.us>
Sat, 5 Jun 2010 16:01:04 +0000 (09:01 -0700)
src/microcode/pruxffi.c

index ab19b2692e8b7199526bf2641a04138a9d2011dc..477c46c2356b88aaeb72b0e698090bce3ac571f2 100644 (file)
@@ -90,7 +90,7 @@ arg_address (int argn)
 }
 
 #define ALIEN_ADDRESS_LOC(type)                                                \
-  (((type *) (arg_address (1))) + (UNSIGNED_FIXNUM_ARG (2)))
+  ((type *)(((char *) (arg_address (1))) + (UNSIGNED_FIXNUM_ARG (2))))
 
 #define ALIEN_ADDRESS_REF(type) (* (ALIEN_ADDRESS_LOC (type)))