File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2360,29 +2360,29 @@ PyType_FromSpec(PyType_Spec *spec)
23602360 return NULL ;
23612361 res -> ht_name = PyUnicode_FromString (spec -> name );
23622362 if (!res -> ht_name )
2363- goto fail ;
2363+ goto fail ;
23642364 res -> ht_type .tp_name = _PyUnicode_AsString (res -> ht_name );
23652365 if (!res -> ht_type .tp_name )
2366- goto fail ;
2366+ goto fail ;
23672367
23682368 res -> ht_type .tp_basicsize = spec -> basicsize ;
23692369 res -> ht_type .tp_itemsize = spec -> itemsize ;
23702370 res -> ht_type .tp_flags = spec -> flags | Py_TPFLAGS_HEAPTYPE ;
23712371
23722372 for (slot = spec -> slots ; slot -> slot ; slot ++ ) {
2373- if (slot -> slot >= sizeof (slotoffsets )/sizeof (slotoffsets [0 ])) {
2374- PyErr_SetString (PyExc_RuntimeError , "invalid slot offset" );
2375- goto fail ;
2376- }
2377- * (void * * )(res_start + slotoffsets [slot -> slot ]) = slot -> pfunc ;
2373+ if (slot -> slot >= sizeof (slotoffsets )/sizeof (slotoffsets [0 ])) {
2374+ PyErr_SetString (PyExc_RuntimeError , "invalid slot offset" );
2375+ goto fail ;
2376+ }
2377+ * (void * * )(res_start + slotoffsets [slot -> slot ]) = slot -> pfunc ;
23782378
23792379 /* need to make a copy of the docstring slot, which usually
23802380 points to a static string literal */
23812381 if (slot -> slot == Py_tp_doc ) {
23822382 size_t len = strlen (slot -> pfunc )+ 1 ;
23832383 char * tp_doc = PyObject_MALLOC (len );
23842384 if (tp_doc == NULL )
2385- goto fail ;
2385+ goto fail ;
23862386 memcpy (tp_doc , slot -> pfunc , len );
23872387 res -> ht_type .tp_doc = tp_doc ;
23882388 }
You can’t perform that action at this time.
0 commit comments