File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
quaddtype/numpy_quaddtype/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,12 @@ get_sleef_constant(PyObject *self, PyObject *args)
80
80
else if (strcmp (constant_name , "precision" ) == 0 ) {
81
81
Py_DECREF (result );
82
82
// precision = int(-log10(epsilon))
83
- auto precision = Sleef_cast_to_int64q1 (Sleef_negq1 (Sleef_log10q1_u10 (SLEEF_QUAD_EPSILON )));
83
+ int64_t precision = Sleef_cast_to_int64q1 (Sleef_negq1 (Sleef_log10q1_u10 (SLEEF_QUAD_EPSILON )));
84
84
return PyLong_FromLong (precision );
85
85
}
86
86
else if (strcmp (constant_name , "resolution" ) == 0 ) {
87
87
// precision = int(-log10(epsilon))
88
- auto precision = Sleef_cast_to_int64q1 (Sleef_negq1 (Sleef_log10q1_u10 (SLEEF_QUAD_EPSILON )));
88
+ int64_t precision = Sleef_cast_to_int64q1 (Sleef_negq1 (Sleef_log10q1_u10 (SLEEF_QUAD_EPSILON )));
89
89
// resolution = 10 ** (-precision)
90
90
result -> value .sleef_value = Sleef_powq1_u10 (Sleef_cast_from_int64q1 (10 ), Sleef_cast_from_int64q1 (- precision ));
91
91
}
You can’t perform that action at this time.
0 commit comments