From: Brian Curtin Date: Tue, 1 Jan 2013 18:31:06 +0000 (-0600) Subject: Backed out changeset 61bada808b34 X-Git-Tag: v3.4.0a1~1721 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cc4321bf5d8ef6a0d38f099c9592a722444a3eb;p=python Backed out changeset 61bada808b34 --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 3eec4c014b..e53e76cef5 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));