On Sat, Sep 10, 2016 at 10:11 AM, Itsuki Toyota <
perl6-bugs-follo...@perl.org> wrote:

> $ perl6 -MNativeCall -e 'my $null = Pointer; my $not-null =
> CArray[int32].new; $not-null[0] = 1; $not-null[1] = 1; $not-null[2] = 1;
> say nativesizeof($not-null)'
> 8
>

That size looks doubly wrong to me. Its not going to happen for a 3-element
array no matter how you slice it... so I suspect you're getting the size of
one element, which is itself twice the size of what C thinks.

-- 
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Reply via email to