New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Win32] UV_MAX is wrong on "use 64bit int" builds #15533
Comments
From @sisyphusHi, I'm assuming that UV_MAX (defined in perl.h) should be set to the maximum However, on all "use 64bit int" builds that I've tested (from perl-5.12.0 to Here is the demo: ############################### C:\_32\>type try.pl use Inline C => <<'EOC'; void foo() { #ifdef USE_64_BIT_INT #ifndef INT64_MAX printf("%u %u %u %u\n", UV_MAX, QUADKIND, QUAD_IS_INT64_T, EOC foo(); C:\_32>perl try.pl C:\_32\>perl -le "print ~0;" ############################### What is the best portable way to obtain the maximum UV value from within XS Here is the 'perl -V' output for the perl (5.25.3)that produced the above Summary of my perl5 (revision 5 version 25 subversion 3) configuration: Platform: Characteristics of this binary (from libperl): |
From zefram@fysh.orgSisyphus wrote:
%u takes an int argument, so of course the output is limited to the -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From @sisyphusDuh ... of course. -----Original Message----- Sisyphus wrote:
%u takes an int argument, so of course the output is limited to the -zefram |
From @khwilliamsonrejected |
@khwilliamson - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#129009 (status was 'rejected')
Searchable as RT129009$
The text was updated successfully, but these errors were encountered: