Skip to content

Commit 827c083

Browse files
committed
fixed nb::type_slots argument constness
1 parent 7fcdcd9 commit 827c083

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/nanobind/nb_attr.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ template <typename T> struct intrusive_ptr {
6363
};
6464

6565
struct type_slots {
66-
type_slots (PyType_Slot *value) : value(value) { }
67-
PyType_Slot *value;
66+
type_slots (const PyType_Slot *value) : value(value) { }
67+
const PyType_Slot *value;
6868
};
6969

7070
struct type_slots_callback {

0 commit comments

Comments
 (0)