From 82e7e9e8bf62c4d9748bb625b66b4ca7afb8a6f4 Mon Sep 17 00:00:00 2001 From: Nathan Dunfield Date: Sun, 11 Jun 2023 16:21:53 -0400 Subject: [PATCH] Made compatible with Cython 3.0.0b3 --- planarmap_src/planarmap.pyx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/planarmap_src/planarmap.pyx b/planarmap_src/planarmap.pyx index 7c2bf1f..30a846c 100644 --- a/planarmap_src/planarmap.pyx +++ b/planarmap_src/planarmap.pyx @@ -1,4 +1,10 @@ #cython: language_level=3 +#cython: legacy_implicit_noexcept=True +# +# The above line is for Cython 3; to remove, need to declare +# "randrange_callback" via: +# +# cdef long randrange_callback(long n) noexcept: from libc.stdlib cimport malloc, free import random