Skip to content

Commit 493b258

Browse files
committed
Add explanatory comment for setitem with NA branch
1 parent ed191fc commit 493b258

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stringdtype/stringdtype/src/dtype.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ stringdtype_setitem(StringDTypeObject *NPY_UNUSED(descr), PyObject *obj,
152152
}
153153

154154
if (eq_res == 1) {
155-
// NULL is the representation of NA in the array buffer
156-
sdata = NULL;
155+
// do nothing, ssfree already NULLed the struct ssdata points to
156+
// so it already contains a NA value
157157
}
158158
else {
159159
char *val = NULL;

0 commit comments

Comments
 (0)