Skip to content

Commit e5e7b2e

Browse files
vstinnerpicnixz
andauthored
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent c5c6295 commit e5e7b2e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Modules/_testcapi/heaptype.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ PyDoc_STRVAR(heapctype__doc__,
646646
static void
647647
heapctype_dealloc(PyObject *op)
648648
{
649-
HeapCTypeObject *self = (HeapCTypeObject *)op;
649+
HeapCTypeObject *self = (HeapCTypeObject*)op;
650650
PyTypeObject *tp = Py_TYPE(self);
651651
PyObject_Free(self);
652652
Py_DECREF(tp);
@@ -721,7 +721,7 @@ typedef struct {
721721
static int
722722
heapctypewithbuffer_getbuffer(PyObject *op, Py_buffer *view, int flags)
723723
{
724-
HeapCTypeWithBufferObject *self = (HeapCTypeWithBufferObject *)op;
724+
HeapCTypeWithBufferObject *self = (HeapCTypeWithBufferObject*)op;
725725
self->buffer[0] = '1';
726726
self->buffer[1] = '2';
727727
self->buffer[2] = '3';
@@ -733,7 +733,7 @@ heapctypewithbuffer_getbuffer(PyObject *op, Py_buffer *view, int flags)
733733
static void
734734
heapctypewithbuffer_releasebuffer(PyObject *op, Py_buffer *view)
735735
{
736-
HeapCTypeWithBufferObject *self = (HeapCTypeWithBufferObject *)op;
736+
HeapCTypeWithBufferObject *self = (HeapCTypeWithBufferObject*)op;
737737
assert(view->obj == (void*) self);
738738
}
739739

@@ -1247,7 +1247,7 @@ HeapCCollection_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds)
12471247
static Py_ssize_t
12481248
HeapCCollection_length(PyObject *op)
12491249
{
1250-
PyVarObject *self = (PyVarObject *)op;
1250+
PyVarObject *self = (PyVarObject*)op;
12511251
return Py_SIZE(self);
12521252
}
12531253

Modules/_testlimitedcapi/heaptype_relative.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ make_sized_heaptypes(PyObject *module, PyObject *args)
7777
static PyObject *
7878
var_heaptype_set_data_to_3s(
7979
PyObject *self, PyTypeObject *defining_class,
80-
PyObject * const *args, Py_ssize_t nargs, PyObject *kwnames)
80+
PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
8181
{
8282
void *data_ptr = PyObject_GetTypeData(self, defining_class);
8383
if (!data_ptr) {
@@ -93,7 +93,7 @@ var_heaptype_set_data_to_3s(
9393

9494
static PyObject *
9595
var_heaptype_get_data(PyObject *self, PyTypeObject *defining_class,
96-
PyObject * const *args, Py_ssize_t nargs, PyObject *kwnames)
96+
PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
9797
{
9898
void *data_ptr = PyObject_GetTypeData(self, defining_class);
9999
if (!data_ptr) {

0 commit comments

Comments
 (0)