From f58e381f183667ed8777d44a6828b3d8d08bd8f8 Mon Sep 17 00:00:00 2001 From: Christopher Ariza Date: Tue, 3 Feb 2026 16:11:15 -0800 Subject: [PATCH] force AK_UCS4_to_float64 to use caced float --- src/delimited_to_arrays.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/delimited_to_arrays.c b/src/delimited_to_arrays.c index d03e020c..6926865e 100644 --- a/src/delimited_to_arrays.c +++ b/src/delimited_to_arrays.c @@ -810,7 +810,7 @@ static inline npy_float64 AK_UCS4_to_float64(Py_UCS4 *p_item, Py_UCS4 *end, int *error, char tsep, char decc) { // Cache powers of 10 in memory. - npy_float64 e[] = { + static const npy_float64 e[] = { 1., 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19, 1e20, 1e21, 1e22, 1e23, 1e24, 1e25, 1e26, 1e27, 1e28, 1e29,