From 3f5f6628f0b6a674e4729c7803331d8188bbd8f8 Mon Sep 17 00:00:00 2001 From: Joe Renaud Date: Fri, 6 Oct 2023 19:24:57 -0400 Subject: [PATCH] fixed size_t conversion --- CyRK/cy/cyrk.pyx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CyRK/cy/cyrk.pyx b/CyRK/cy/cyrk.pyx index 9431cd9..8a22ae8 100644 --- a/CyRK/cy/cyrk.pyx +++ b/CyRK/cy/cyrk.pyx @@ -270,12 +270,13 @@ def cyrk_ode( atols_ptr[i] = atol # Determine max number of steps - cdef double max_num_steps_ram - max_num_steps_ram = max_ram_MB * (1000 * 1000) / sizeof(double_numeric) + cdef double max_num_steps_ram_dbl + max_num_steps_ram_dbl = max_ram_MB * (1000 * 1000) / sizeof(double_numeric) if capture_extra: - max_num_steps_ram /= (1 + y_size + num_extra) + max_num_steps_ram_dbl /= (1 + y_size + num_extra) else: - max_num_steps_ram /= (1 + y_size) + max_num_steps_ram_dbl /= (1 + y_size) + cdef size_t max_num_steps_ram = max_num_steps_ram_dbl # Parse user-provided max number of steps cdef bool_cpp_t user_provided_max_num_steps = False