syphilis has asked for the wisdom of the Perl Monks concerning the following question:
which is fine on *nix systems but on Windows builds of perl, whenever IVSIZE is 8, it warns:snprintf (enc->cur, IVUV_MAXCHARS, "%" UVuf, uv)
I can fix that for those Windows perls by replacing the occurrence of "%" with "%llu" but I doubt the portability of that fix. (I guess I could also add separate renditions for #if defined(WIN32) && IVSIZE == 8 .... yuk.)XS.xs:2449:66: warning: format '%u' expects argument of type 'unsigned + int', but argument 4 has type 'long long unsigned int' [-Wformat=]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: [XS] : "snprintf" portability options
by tonyc (Friar) on Sep 15, 2024 at 22:32 UTC | |
by syphilis (Archbishop) on Sep 16, 2024 at 00:53 UTC | |
by ikegami (Patriarch) on Sep 16, 2024 at 10:27 UTC | |
by tonyc (Friar) on Sep 16, 2024 at 22:56 UTC | |
by NERDVANA (Priest) on Sep 17, 2024 at 01:34 UTC | |
| |
by ikegami (Patriarch) on Sep 17, 2024 at 10:25 UTC | |
by etj (Priest) on Sep 16, 2024 at 13:09 UTC | |
by hippo (Archbishop) on Sep 17, 2024 at 12:48 UTC | |
by jdporter (Paladin) on Sep 17, 2024 at 15:34 UTC | |
| |
by LanX (Saint) on Sep 17, 2024 at 11:23 UTC | |
| |
Re: [XS] : "snprintf" portability options
by etj (Priest) on Sep 15, 2024 at 11:12 UTC | |
by syphilis (Archbishop) on Sep 15, 2024 at 13:59 UTC | |
by NERDVANA (Priest) on Sep 16, 2024 at 03:24 UTC |