# New Ticket Created by  Itsuki Toyota 
# Please include the string:  [perl #129785]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=129785 >


See the following results:

$ gcc ulonglong.c
$ ./a.out
unsigned long long max: 18446744073709551615


$ perl6 -MNativeCall -e 'my ulonglong $a = 18446744073709551615; say $a;'
-1

$ perl6 -MNativeCall -e 'my longlong $a = 18446744073709551615; say $a;'
-1

ulongulong.c
--------------------
#include <stdio.h>
#include <limits.h>

int main(){
  printf("unsigned long long max: %llu\n", ULLONG_MAX);
}
--------------------

It seems wrong to me, because ulonglong behaves like longlong and returns 
signed variables.

$ perl6 --version
This is Rakudo version 2016.09-105-g4abc28c built on MoarVM version 
2016.09-13-g34c375a
implementing Perl 6.c.

$ gcc --version
gcc (Debian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Reply via email to