Skip Menu |
Report information
Id: 130267
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: perl6 [at] mscha.org
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Date: Mon, 5 Dec 2016 13:16:36 +0100
To: rakudobug [...] perl.org
From: Michael Schaap <perl6 [...] mscha.org>
Subject: [BUG] NativeCall: CArray[uint8] may contain negative numbers
Download (untitled) / with headers
text/plain 243b
use NativeCall; my CArray[uint8] $a .= new(200 xx 16); say $a[0]; # expected output: 200, actual output: -56 Using Rakudo Star 2016.11: This is Rakudo version 2016.11 built on MoarVM version 2016.11 implementing Perl 6.c.
Download (untitled) / with headers
text/plain 441b
A todo test has been added to Rakudo https://github.com/rakudo/rakudo/commit/5cdea61b944cd73a599e084ac63617ebde4d2772 On Mon, 05 Dec 2016 04:16:56 -0800, perl6@mscha.org wrote: Show quoted text
> use NativeCall; > > my CArray[uint8] $a .= new(200 xx 16); > say $a[0]; # expected output: 200, actual output: -56 > > Using Rakudo Star 2016.11: > This is Rakudo version 2016.11 built on MoarVM version 2016.11 > implementing Perl 6.c. >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org