Mercurial > cpython-lru_cache-weakref
comparison Objects/floatobject.c @ 11673:5e6e9e893acd legacy-trunk
The rest of the changes by Trent Mick and Dale Nagata for warning-free
compilation on NT Alpha. Mostly added casts etc.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 20 Jan 2000 22:32:56 +0000 |
| parents | cf7a0f1b7b48 |
| children | 74b7213fb609 |
comparison
equal
deleted
inserted
replaced
| 11672:8afd6fb588ee | 11673:5e6e9e893acd |
|---|---|
| 143 } | 143 } |
| 144 op = free_list; | 144 op = free_list; |
| 145 free_list = (PyFloatObject *)op->ob_type; | 145 free_list = (PyFloatObject *)op->ob_type; |
| 146 op->ob_type = &PyFloat_Type; | 146 op->ob_type = &PyFloat_Type; |
| 147 op->ob_fval = fval; | 147 op->ob_fval = fval; |
| 148 _Py_NewReference(op); | 148 _Py_NewReference((PyObject *)op); |
| 149 return (PyObject *) op; | 149 return (PyObject *) op; |
| 150 } | 150 } |
| 151 | 151 |
| 152 PyObject * | 152 PyObject * |
| 153 PyFloat_FromString(v, pend) | 153 PyFloat_FromString(v, pend) |
