- changed status to resolved
FFI wrong struct alignment
Issue #274
resolved
The offset of g
must be 40 but this prints 72
(import (rnrs)
(sagittarius ffi))
(define-c-struct RECT
(int x)
(int y)
(int w)
(int h))
(define-c-struct FOO
(int a)
(int b)
(int c)
(int d)
(int i)
(void* e)
(void* f)
(struct RECT g)
(long h))
(describe-c-struct FOO)
Comments (1)
-
reporter - Log in to comment
Fixing wrong computation of struct offset (Fixes
#274)→ <<cset 48ad35c15ca2>>