Skip to content

Commit f697036

Browse files
committed
Clean up the nb_info struct
1 parent 9905549 commit f697036

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Objects/abstract.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,14 +1716,14 @@ PyNumber_ToBase(PyObject *n, int base)
17161716
}
17171717

17181718
typedef struct {
1719-
const char *name;
1720-
size_t slot;
1721-
const char *iname;
1722-
size_t islot;
1719+
const int slot;
1720+
const char name[3];
1721+
const int islot;
1722+
const char iname[4];
17231723
} nb_info;
17241724

17251725
#define NB_INFO(name, slot) \
1726-
{name, NB_SLOT(nb_##slot), name "=", NB_SLOT(nb_inplace_##slot)}
1726+
{NB_SLOT(nb_##slot), name, NB_SLOT(nb_inplace_##slot), name "="}
17271727

17281728
static nb_info nb_infos[] = {
17291729
[NB_AND] = NB_INFO("&", and),

0 commit comments

Comments
 (0)