summaryrefslogtreecommitdiff
path: root/_obnammodule.c
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-12-18 20:08:28 +0000
committerLars Wirzenius <liw@liw.fi>2011-12-18 20:08:28 +0000
commitdae1515c9efe7c39823d9e0d81c652c53a3c6e13 (patch)
tree7d0354917cd9fc8f1877e5b91595579f19d23fc5 /_obnammodule.c
parentc660803e747267102041a16a08d49ae02b6b4219 (diff)
downloadobnam-dae1515c9efe7c39823d9e0d81c652c53a3c6e13.tar.gz
fix lstat(2) wrapper to build long long integers properlyobnam-0.24
This fixes a bug on legacy 32-bit architectures.
Diffstat (limited to '_obnammodule.c')
-rw-r--r--_obnammodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/_obnammodule.c b/_obnammodule.c
index d07f0f8c..557ed414 100644
--- a/_obnammodule.c
+++ b/_obnammodule.c
@@ -104,7 +104,7 @@ lstat_wrapper(PyObject *self, PyObject *args)
ret = lstat(filename, &st);
if (ret == -1)
ret = errno;
- return Py_BuildValue("illllllllllllllll",
+ return Py_BuildValue("iLLLLLLLLLLLLLLLL",
ret,
(long long) st.st_dev,
(long long) st.st_ino,