Skip to content

Commit

Permalink
fixed nb::type_slots argument constness
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Jun 22, 2023
1 parent 7fcdcd9 commit 827c083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/nanobind/nb_attr.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ template <typename T> struct intrusive_ptr {
};

struct type_slots {
type_slots (PyType_Slot *value) : value(value) { }
PyType_Slot *value;
type_slots (const PyType_Slot *value) : value(value) { }
const PyType_Slot *value;
};

struct type_slots_callback {
Expand Down

0 comments on commit 827c083

Please sign in to comment.