Skip to content

Commit fe476c2

Browse files
committed
Use int64_t for sleef precision
1 parent 8fe110f commit fe476c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quaddtype/numpy_quaddtype/src/quaddtype_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ get_sleef_constant(PyObject *self, PyObject *args)
8080
else if (strcmp(constant_name, "precision") == 0) {
8181
Py_DECREF(result);
8282
// 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)));
8484
return PyLong_FromLong(precision);
8585
}
8686
else if (strcmp(constant_name, "resolution") == 0) {
8787
// 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)));
8989
// resolution = 10 ** (-precision)
9090
result->value.sleef_value = Sleef_powq1_u10(Sleef_cast_from_int64q1(10), Sleef_cast_from_int64q1(-precision));
9191
}

0 commit comments

Comments
 (0)