summaryrefslogtreecommitdiff
path: root/jq.pyx
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2024-08-14 18:31:53 +0100
committerMichael Williamson <mike@zwobble.org>2024-08-14 18:31:53 +0100
commitae09db302c87c48f8fa4e048c52bd0730d0a1afd (patch)
tree4e835ba827548598c3c7971592640c4b9d886af3 /jq.pyx
parent46aa6091ba226d43a796b4552cc39b775ff69ba4 (diff)
Add noexcept to _is_integer()
Diffstat (limited to 'jq.pyx')
-rw-r--r--jq.pyx2
1 files changed, 1 insertions, 1 deletions
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)