Skip to content

Commit 28d93fa

Browse files
committed
minor cleanup
1 parent 33c9383 commit 28d93fa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/nb_internals.h

-2
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,6 @@ NB_INLINE type_data *nb_type_data(PyTypeObject *o) noexcept{
460460
#endif
461461
}
462462

463-
extern PyObject *nb_type_name(PyObject *o) noexcept;
464-
465463
inline void *inst_ptr(nb_inst *self) {
466464
void *ptr = (void *) ((intptr_t) self + self->offset);
467465
return self->direct ? ptr : *(void **) ptr;

src/nb_type.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ PyObject *inst_new_int(PyTypeObject *tp, PyObject * /* args */,
9999
self->clear_keep_alive = 0;
100100
self->intrusive = intrusive;
101101
self->unused = 0;
102-
nb_enable_try_inc_ref((PyObject *)self);
102+
nb_enable_try_inc_ref((PyObject *) self);
103103

104104
// Update hash table that maps from C++ to Python instance
105105
nb_shard &shard = internals->shard((void *) payload);
@@ -165,7 +165,7 @@ PyObject *inst_new_ext(PyTypeObject *tp, void *value) {
165165
self->clear_keep_alive = 0;
166166
self->intrusive = intrusive;
167167
self->unused = 0;
168-
nb_enable_try_inc_ref((PyObject *)self);
168+
nb_enable_try_inc_ref((PyObject *) self);
169169

170170
nb_shard &shard = internals->shard(value);
171171
lock_shard guard(shard);

0 commit comments

Comments
 (0)