From ef4364f3b8d45c713ca4aecf9329587ee0ed1bda Mon Sep 17 00:00:00 2001
From: Neal Norwitz <nnorwitz@gmail.com>
Date: Thu, 5 Apr 2007 05:06:49 +0000
Subject: Fix unpack so it works on 64-bit platforms.

---
 Modules/_struct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Modules/_struct.c b/Modules/_struct.c
index 328acd9..53c6484 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -1486,7 +1486,7 @@ static PyObject *
 s_unpack(PyObject *self, PyObject *inputstr)
 {
 	char *start;
-	int len;
+	Py_ssize_t len;
 	PyObject *args=NULL, *result;
 	PyStructObject *soself = (PyStructObject *)self;
 	assert(PyStruct_Check(self));
-- 
cgit v0.12

