Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 pcapy (0.11.5-5) unstable; urgency=medium
 .
   * Team Upload
   * Remove old CDBS comments from d/rules
   * Use dh-sequence-python3
   * Reformat debian/ with debputy
Author: Alexandre Detiste <tchet@debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2025-04-30

--- pcapy-0.11.5.orig/pcapobj.cc
+++ pcapy-0.11.5/pcapobj.cc
@@ -395,9 +395,9 @@ PythonCallBack(u_char *user,
 	       const u_char *packetdata)
 {
   PyObject *arglist, *result;
-  Py_ssize_t *len;
+  unsigned int *len;
   PcapCallbackContext *pctx;
-  len    = (Py_ssize_t *)&header->caplen;
+  len    = (unsigned int *)&header->caplen;
   pctx = (PcapCallbackContext *)user;
 
   PyEval_RestoreThread(pctx->thread_state);
