From ae09db302c87c48f8fa4e048c52bd0730d0a1afd Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Wed, 14 Aug 2024 18:31:53 +0100 Subject: [PATCH] Add noexcept to _is_integer() --- jq.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jq.pyx b/jq.pyx index f42efdf..5ee38f4 100644 --- a/jq.pyx +++ b/jq.pyx @@ -124,7 +124,7 @@ cdef object _jv_to_python(jv value): return python_value -cdef int _is_integer(double value): +cdef int _is_integer(double value) noexcept: cdef double integral_part cdef double fractional_part = modf(value, &integral_part)