Skip to content

Commit c6945f1

Browse files
committed
Rename the type variable (ipotype was a hold-over from the original reproducer)
1 parent b13e464 commit c6945f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/_testcppext.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,12 @@ PyType_Spec VirtualPyObject_Spec = {
167167

168168
VirtualPyObject::VirtualPyObject() {
169169
// Create a temporary type (just so we don't need to store it)
170-
PyObject *ipotype = PyType_FromSpec(&VirtualPyObject_Spec);
170+
PyObject *type = PyType_FromSpec(&VirtualPyObject_Spec);
171171
// no good way to signal failure from a C++ constructor, so use assert
172172
// for error handling
173-
assert(ipotype);
174-
assert(PyObject_Init(this, (PyTypeObject *)ipotype));
175-
Py_DECREF(ipotype);
173+
assert(type);
174+
assert(PyObject_Init(this, (PyTypeObject *)type));
175+
Py_DECREF(type);
176176
internal_data = new int[50];
177177
++instance_count;
178178
}

0 commit comments

Comments
 (0)