From 9cc4321bf5d8ef6a0d38f099c9592a722444a3eb Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Tue, 1 Jan 2013 12:31:06 -0600 Subject: [PATCH] Backed out changeset 61bada808b34 --- Modules/posixmodule.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 3eec4c014b4..e53e76cef55 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));