Debian Codegraph @

debian/patches/32-bit-strlen-warning.patch

raw
1 Description: Fix string formatting argument type warning on 32-bit
2 A simple cast seems like the most straightforward way to solve this, as
3 it's extremely unlikely that the size will get near 2^31.
4 Origin: Ubuntu
5 Bug: https://rt.cpan.org/Public/Bug/Display.html?id=150266
6 Bug-Debian: https://bugs.debian.org/1056397
7 Forwarded: via irc
8 Author: Gianfranco Costamagna <[email protected]>
9 Reviewed-by: gregor herrmann <[email protected]>
10 Last-Update: 2025-12-19
11
12 ---
13 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
14 --- a/lib/XS/Parse/Sublike.xs
15 +++ b/lib/XS/Parse/Sublike.xs
16 @@ -607,10 +607,10 @@
17 {
18 if(funcs->ver < 5)
19 croak("Mismatch in signature param attribute ABI version field: module wants %u; we require >= 5\n",
20 - funcs->ver);
21 + (int)funcs->ver);
22 if(funcs->ver > XSPARSESUBLIKE_ABI_VERSION)
23 croak("Mismatch in signature param attribute ABI version field: module wants %u; we support <= %d\n",
24 - funcs->ver, XSPARSESUBLIKE_ABI_VERSION);
25 + (int)funcs->ver, XSPARSESUBLIKE_ABI_VERSION);
26
27 if(!name || !(name[0] >= 'A' && name[0] <= 'Z'))
28 croak("Signature param attribute names must begin with a capital letter");