10000 BUG: Fix missing NPY_VISIBILITY_HIDDEN on npy_longdouble_to_PyLong · numpy/numpy@c3f8016 · GitHub
[go: up one dir, main page]

Skip to content

Commit c3f8016

Browse files
eric-wiesercharris
authored andcommitted
BUG: Fix missing NPY_VISIBILITY_HIDDEN on npy_longdouble_to_PyLong
Fixes #10648 NPY_VISIBILITY_HIDDEN is used by memoverlap.{c,h}, so we should be using the same thing here
1 parent c0f864c commit c3f8016

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

numpy/core/src/private/npy_longdouble.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Heavily derived from PyLong_FromDouble
1818
* Notably, we can't set the digits directly, so have to shift and or instead.
1919
*/
20-
PyObject *
20+
NPY_VISIBILITY_HIDDEN PyObject *
2121
npy_longdouble_to_PyLong(npy_longdouble ldval)
2222
{
2323
PyObject *v;

numpy/core/src/private/npy_longdouble.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* This performs the same task as PyLong_FromDouble, but for long doubles
1212
* which have a greater range.
1313
*/
14-
NPY_NO_EXPORT PyObject *
14+
NPY_VISIBILITY_HIDDEN PyObject *
1515
npy_longdouble_to_PyLong(npy_longdouble ldval);
1616

1717
#endif

0 commit comments

Comments
 (0)
0