From 7eb6beb6d881a96d1f706161aec4a6a019d9090d Mon Sep 17 00:00:00 2001 From: Jonathan Kliem Date: Tue, 31 May 2022 16:09:56 +0200 Subject: [PATCH] specify that variables are global --- cypari2/custom_block.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypari2/custom_block.pyx b/cypari2/custom_block.pyx index ded0908..ddbb829 100644 --- a/cypari2/custom_block.pyx +++ b/cypari2/custom_block.pyx @@ -16,9 +16,11 @@ cdef int custom_signal_is_blocked(): return PARI_SIGINT_block cdef void custom_signal_unblock(): + global PARI_SIGINT_block PARI_SIGINT_block = 0 cdef void custom_set_pending_signal(int sig): + global PARI_SIGINT_pending PARI_SIGINT_pending = sig def init_custom_block():