parent
bbc9758d76
commit
6167b470b0
@ -1,38 +0,0 @@
|
||||
From 8f9b642f14c5de5303326a5b32f6d267ed7349b6 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||
Date: Thu, 21 Oct 2021 15:32:08 +0200
|
||||
Subject: [PATCH] Fix formatting a pointer difference
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
GCC 11 warned:
|
||||
|
||||
XS.xs: In function 'decode_cbor':
|
||||
XS.xs:1478:14: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=]
|
||||
1478 | croak ("%s, at offset %d (octet 0x%02x)", dec.err, dec.cur - (U8 *)data, (int)(uint8_t)*dec.cur);
|
||||
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
|
||||
| |
|
||||
| long int
|
||||
|
||||
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||
---
|
||||
XS.xs | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/XS.xs b/XS.xs
|
||||
index f4e2b4c..bfc7178 100644
|
||||
--- a/XS.xs
|
||||
+++ b/XS.xs
|
||||
@@ -1475,7 +1475,7 @@ decode_cbor (SV *string, CBOR *cbor, char **offset_return)
|
||||
if (dec.err_sv)
|
||||
sv_2mortal (dec.err_sv);
|
||||
|
||||
- croak ("%s, at offset %d (octet 0x%02x)", dec.err, dec.cur - (U8 *)data, (int)(uint8_t)*dec.cur);
|
||||
+ croak ("%s, at offset %td (octet 0x%02x)", dec.err, dec.cur - (U8 *)data, (int)(uint8_t)*dec.cur);
|
||||
}
|
||||
|
||||
sv = sv_2mortal (sv);
|
||||
--
|
||||
2.31.1
|
||||
|
@ -1 +1 @@
|
||||
SHA512 (CBOR-XS-1.85.tar.gz) = 7da6ed389f5a9492656f50aa835db72ac1f9fb85597cce8dfce1779939edb5f8cd3083e1d774bd2780d79013ce7d4952d29b48c5eb484f32ea74d86ddc850a9c
|
||||
SHA512 (CBOR-XS-1.86.tar.gz) = 44fa695d5c4f8cce121d4a31cc0a51625b21423a20e241557206216a7f6129cc13062f1c98e9f5b77b032898858a998e4c00d1139724bfaee8a21e0f13ca787c
|
||||
|
Loading…
Reference in new issue