Re: ones and twos compliment

[email protected] (ToddAndMargo via perl6-users) Sat, 7 Jun 2025 19:44:58 -0700
Newsgroups perl.perl6.users
Message-ID <[email protected]>
On 6/7/25 12:57 PM, Elizabeth Mattijsen wrote:
>> On 7 Jun 2025, at 21:12, ToddAndMargo via perl6-users <[email protected]> wrote:
>> [0] > my int32 $y=-1073741510
>> -1073741510
>>
>> [1] > my $ones-complement = +^$y;
>> Bytecode validation error at offset 164, instruction 23:
>> operand type 32 does not match register type 24 for op getlex_ni in frame <unit>
>>
>> [1] > my $twos-complement = +^$y + 1;
>> Bytecode validation error at offset 164, instruction 23:
>> operand type 32 does not match register type 24 for op getlex_ni in frame <unit>
>>
>> No idea where to report this to.
> 
> Confirmed on blead.  Consider it reported.  Thanks!
> 
> 
> Liz

Hi Liz,

Thank you!

That REPL is so stinkin' helpful when writing code,
I have come to rely on it a lot.

-T