~pythonregexp2.7/python/issue2636-01

« back to all changes in this revision

Viewing changes to Objects/complexobject.c

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:37:21 UTC
  • mfrom: (39022.1.14 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609143721-bj0g1mwta28038da
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
822
822
static PyObject *
823
823
complex_getnewargs(PyComplexObject *v)
824
824
{
825
 
        return Py_BuildValue("(D)", &v->cval);
 
825
        Py_complex c = v->cval;
 
826
        return Py_BuildValue("(dd)", c.real, c.imag);
826
827
}
827
828
 
828
829
#if 0