Skip to content

Commit 1f4ab30

Browse files
authored
Merge pull request #70 from ngoldbaum/add-object-equal-promoter
Fix comparisons with object arrays
2 parents dc0d884 + 3685895 commit 1f4ab30

File tree

4 files changed

+421
-133
lines changed

4 files changed

+421
-133
lines changed

stringdtype/stringdtype/src/dtype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ string_discover_descriptor_from_pyobject(PyTypeObject *cls, PyObject *obj)
130130

131131
// Take a python object `obj` and insert it into the array of dtype `descr` at
132132
// the position given by dataptr.
133-
static int
133+
int
134134
stringdtype_setitem(StringDTypeObject *descr, PyObject *obj, char **dataptr)
135135
{
136136
// borrow reference

stringdtype/stringdtype/src/dtype.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ compare(void *, void *, void *);
4242
int
4343
init_string_na_object(PyObject *mod);
4444

45+
int
46+
stringdtype_setitem(StringDTypeObject *descr, PyObject *obj, char **dataptr);
47+
4548
// from dtypemeta.h, not public in numpy
4649
#define NPY_DTYPE(descr) ((PyArray_DTypeMeta *)Py_TYPE(descr))
4750

0 commit comments

Comments
 (0)