Skip to content

Commit

Permalink
bpo-45767: consume dev_t with PyLong_FromUnsignedLongLong (GH-29494)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Jan 20, 2022
1 parent d05a663 commit 54411d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Make ``_PyLong_FromDev`` treat ``dev_t`` as ``unsigned long
long`` instead of ``long long``.
2 changes: 1 addition & 1 deletion Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ _Py_Gid_Converter(PyObject *obj, gid_t *p)
#endif /* MS_WINDOWS */


#define _PyLong_FromDev PyLong_FromLongLong
#define _PyLong_FromDev PyLong_FromUnsignedLongLong


#if defined(HAVE_MKNOD) && defined(HAVE_MAKEDEV)
Expand Down

0 comments on commit 54411d4

Please sign in to comment.