mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix typo: double semicolons.
This commit is contained in:
parent
5eef77a21b
commit
d93dce1699
2 changed files with 2 additions and 2 deletions
|
@ -659,7 +659,7 @@ float_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||||
if (tmp == NULL)
|
if (tmp == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
assert(PyFloat_Check(tmp));
|
assert(PyFloat_Check(tmp));
|
||||||
new = type->tp_alloc(type, 0);;
|
new = type->tp_alloc(type, 0);
|
||||||
if (new == NULL)
|
if (new == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
((PyFloatObject *)new)->ob_fval = ((PyFloatObject *)tmp)->ob_fval;
|
((PyFloatObject *)new)->ob_fval = ((PyFloatObject *)tmp)->ob_fval;
|
||||||
|
|
|
@ -834,7 +834,7 @@ int_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||||
if (tmp == NULL)
|
if (tmp == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
assert(PyInt_Check(tmp));
|
assert(PyInt_Check(tmp));
|
||||||
new = type->tp_alloc(type, 0);;
|
new = type->tp_alloc(type, 0);
|
||||||
if (new == NULL)
|
if (new == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
((PyIntObject *)new)->ob_ival = ((PyIntObject *)tmp)->ob_ival;
|
((PyIntObject *)new)->ob_ival = ((PyIntObject *)tmp)->ob_ival;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue