Re: [Chicken-hackers] [PATCH] correct size calculation for ffi return types

2017-08-06 Thread felix . winkelmann
> On Mon, Jul 31, 2017 at 06:31:28PM +0200, lemonboy wrote: > > Hello hackers, > > I managed to stumble across this nasty compiler bug while trying to figure > > out > > why some code was segfaulting in a FFI stub. It turns out that I forgot to > > place > > a define-foreign-type form before the

Re: [Chicken-hackers] [PATCH] correct size calculation for ffi return types

2017-08-06 Thread Peter Bex
On Mon, Jul 31, 2017 at 06:31:28PM +0200, lemonboy wrote: > Hello hackers, > I managed to stumble across this nasty compiler bug while trying to figure out > why some code was segfaulting in a FFI stub. It turns out that I forgot to > place > a define-foreign-type form before the lines the type wa

[Chicken-hackers] [PATCH] correct size calculation for ffi return types

2017-07-31 Thread lemonboy
Hello hackers, I managed to stumble across this nasty compiler bug while trying to figure out why some code was segfaulting in a FFI stub. It turns out that I forgot to place a define-foreign-type form before the lines the type was referenced in and the compiler happily assumed it had size 0 and sk