Skip to content

Commit 8fb28fe

Browse files
Fix Windows build
1 parent 99784a8 commit 8fb28fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_collectionsmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ deque_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
111111
return (PyObject *)deque;
112112
}
113113

114-
static size_t min(size_t a, size_t b) {
114+
static size_t size_min(size_t a, size_t b) {
115115
return a < b ? a : b;
116116
}
117117

118118
// We want zero to behave like +infinity, hence the -1 and unsigned overflow.
119119
static Py_ssize_t min3_special(Py_ssize_t a, Py_ssize_t b, Py_ssize_t c) {
120-
return min(a - 1, min(b - 1, c - 1)) + 1;
120+
return size_min(a - 1, size_min(b - 1, c - 1)) + 1;
121121
}
122122

123123
static void circular_mem_move(PyObject **items, Py_ssize_t allocated, Py_ssize_t dst_start, Py_ssize_t src_start, Py_ssize_t m) {

0 commit comments

Comments
 (0)