Skip to content

Commit

Permalink
Fix unneeded semicolons triggers warnings with pedantic enabled (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdcong committed Sep 26, 2024
1 parent efb22ed commit abaad69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/nanobind/nb_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,13 @@ inline size_t type_align(handle h) { return detail::nb_type_align(h.ptr()); }
inline const std::type_info& type_info(handle h) { return *detail::nb_type_info(h.ptr()); }
template <typename T>
inline T &type_supplement(handle h) { return *(T *) detail::nb_type_supplement(h.ptr()); }
inline str type_name(handle h) { return steal<str>(detail::nb_type_name(h.ptr())); };
inline str type_name(handle h) { return steal<str>(detail::nb_type_name(h.ptr())); }

// Low level access to nanobind instance objects
inline bool inst_check(handle h) { return type_check(h.type()); }
inline str inst_name(handle h) {
return steal<str>(detail::nb_inst_name(h.ptr()));
};
}
inline object inst_alloc(handle h) {
return steal(detail::nb_inst_alloc((PyTypeObject *) h.ptr()));
}
Expand Down

0 comments on commit abaad69

Please sign in to comment.