You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
// Create a PyFloatObject object from v, or NULL on failure.
392
-
funcPyFloat_FromDouble(vfloat32) *PyObject {
392
+
funcPyFloat_FromDouble(vfloat64) *PyObject {
393
393
returntogo(C.PyFloat_FromDouble(C.double(v)))
394
394
}
395
395
396
396
// double PyFloat_AsDouble(PyObject *pyfloat)
397
397
// Return a C double representation of the contents of pyfloat. If pyfloat is not a Python floating point object but has a __float__() method, this method will first be called to convert pyfloat into a float.
398
-
funcPyFloat_AsDouble(self*PyObject) float32 {
399
-
returnfloat32(C.PyFloat_AsDouble(topy(self)))
398
+
funcPyFloat_AsDouble(self*PyObject) float64 {
399
+
returnfloat64(C.PyFloat_AsDouble(topy(self)))
400
400
}
401
401
402
402
// double PyFloat_AS_DOUBLE(PyObject *pyfloat)
403
403
// Return a C double representation of the contents of pyfloat, but without error checking.
0 commit comments