Skip to content

Commit 23728f8

Browse files
authored
Merge pull request #205 from static-frame/204/ucs4-to-float
`AK_UCS4_to_float64` improvements
2 parents 283ba23 + f58e381 commit 23728f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/delimited_to_arrays.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ static inline npy_float64
810810
AK_UCS4_to_float64(Py_UCS4 *p_item, Py_UCS4 *end, int *error, char tsep, char decc)
811811
{
812812
// Cache powers of 10 in memory.
813-
npy_float64 e[] = {
813+
static const npy_float64 e[] = {
814814
1., 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9,
815815
1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19,
816816
1e20, 1e21, 1e22, 1e23, 1e24, 1e25, 1e26, 1e27, 1e28, 1e29,

0 commit comments

Comments
 (0)