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

Skip to content

Commit cfe9fcc

Browse files
committed
BUG: Fix tests to compile under MSVC
1 parent 79afefd commit cfe9fcc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

numpy/core/test_c99complex.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,16 @@
9999

100100
#define RETTYPE PyObject*
101101

102+
/* MSVC #defines copysign as _copysign. This conflicts with our prefixing */
103+
#ifdef _MSC_VER
104+
#undef copysign
105+
#endif
106+
102107
#define INIT_FUNC() \
103108
PyObject *ret = PyList_New(0); \
104109
PyObject *entry; \
105110
const size_t bsize = 4096; \
106-
char buf[bsize]; \
111+
char buf[4096]; \
107112
int used_size
108113

109114
#define TEST_FAILED_INT(printexpr) \

0 commit comments

Comments
 (0)