Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a27d112

Browse files
committed
Rename roundup() to roundupsize(), as there's a macro roundup() in the
sys/types.h header on many systems that may get pulled in (through WANT_SIGFPE_HANDLER which pulls in signal.h).
1 parent 81e479a commit a27d112

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/listobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ PERFORMANCE OF THIS SOFTWARE.
4343
((((n)+(PyTryBlock)-1)/(PyTryBlock))*(PyTryBlock))
4444

4545
static int
46-
roundup(n)
46+
roundupsize(n)
4747
int n;
4848
{
4949
if (n < 500)
@@ -52,7 +52,7 @@ roundup(n)
5252
return ROUNDUP(n, 100);
5353
}
5454

55-
#define NRESIZE(var, type, nitems) PyMem_RESIZE(var, type, roundup(nitems))
55+
#define NRESIZE(var, type, nitems) PyMem_RESIZE(var, type, roundupsize(nitems))
5656

5757
PyObject *
5858
PyList_New(size)

0 commit comments

Comments
 (0)