mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Make gcc -Wall happy
This commit is contained in:
parent
472c04f18f
commit
da9c2710c7
5 changed files with 6 additions and 20 deletions
|
@ -532,20 +532,6 @@ complex_float(v)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static object *
|
||||
complex_new(self, args)
|
||||
object *self;
|
||||
object *args;
|
||||
{
|
||||
Py_complex cval;
|
||||
|
||||
cval.imag = 0.;
|
||||
if (!PyArg_ParseTuple(args, "d|d", &cval.real, &cval.imag))
|
||||
return NULL;
|
||||
return newcomplexobject(cval);
|
||||
}
|
||||
|
||||
static object *
|
||||
complex_conjugate(self)
|
||||
object *self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue