[perl #126675] [BUG][MOAR/NativeCall] Evaluating the size of a structure is wrongly done

2015-11-18 Thread via RT
# New Ticket Created by Sylvain Colinet # Please include the string: [perl #126675] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126675 > While writing a binding for Gumbo (A c99 lib to parse html) I came across an error

[perl #126675] [BUG][MOAR/NativeCall] Evaluating the size of a structure is wrongly done

2015-11-18 Thread Tobias Leich via RT
I can confirm that the alignment is wrong. To prove, I created this repo: https://github.com/FROGGS/p6-Gumbo Running `perl6 t` gives: ~/dev/gumbo$ perl6 t/00-structure-sizes.t 1..19 ok 1 - sizeof(size_t) ok 2 - sizeof(GumboStringPiece) ok 3 - sizeof(GumboSourcePosition) ok 4 - sizeof(GumboVector)

[perl #126675] [BUG][MOAR/NativeCall] Evaluating the size of a structure is wrongly done

2015-11-18 Thread Tobias Leich via RT
The fix for this misalignment is: https://github.com/MoarVM/MoarVM/commit/7b382acd61 Test got added here: https://github.com/rakudo/rakudo/commit/deeec10a2e Closing ticket as resolved.