summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2013-01-01 18:31:06 (GMT)
committerBrian Curtin <brian@python.org>2013-01-01 18:31:06 (GMT)
commit9cc4321bf5d8ef6a0d38f099c9592a722444a3eb (patch)
tree5c8c3ac0a67f636d5a19d94569503a9a7520dbd8 /Modules/posixmodule.c
parente3d0b651180ddbff9198d1bf33028bce251420a9 (diff)
downloadcpython-9cc4321bf5d8ef6a0d38f099c9592a722444a3eb.zip
cpython-9cc4321bf5d8ef6a0d38f099c9592a722444a3eb.tar.gz
cpython-9cc4321bf5d8ef6a0d38f099c9592a722444a3eb.tar.bz2
Backed out changeset 61bada808b34
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 3eec4c0..e53e76c 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1955,8 +1955,7 @@ _pystat_fromstructstat(STRUCT_STAT *st)
PyStructSequence_SET_ITEM(v, 2,
PyLong_FromLongLong((PY_LONG_LONG)st->st_dev));
#else
- PyStructSequence_SET_ITEM(v, 2,
- PyLong_FromUnsignedLong(st->st_dev));
+ PyStructSequence_SET_ITEM(v, 2, PyLong_FromLong((long)st->st_dev));
#endif
PyStructSequence_SET_ITEM(v, 3, PyLong_FromLong((long)st->st_nlink));
PyStructSequence_SET_ITEM(v, 4, PyLong_FromLong((long)st->st_uid));