We don't bite newbies here... much | |
PerlMonks |
Re: Unsigned 64-bit integer as Judy keyby bliako (Monsignor) |
on Dec 07, 2022 at 08:27 UTC ( [id://11148645]=note: print w/replies, xml ) | Need Help?? |
How was your perl compiled?: perl -V:ivsize It could well be that this has nothing to do with Judy but that for your Perl, 1<<63 overflows and becomes negative which Judy then receives it and complains. Also, from Judy source, Set() accepts a key as UWord_t which is T_UWORD which is:
(edit: https://metacpan.org/release/JJORE/Judy-0.41/source/lib/Judy.xs and https://metacpan.org/release/JJORE/Judy-0.41/source/typemap) edit: IV: integer value, UV: unsigned valued. In my system with ivsize=8, perl -e 'print 1<<63' outputs 9223372036854775808, do you get the same? bw, bliako
In Section
Seekers of Perl Wisdom
|
|