From 45fbad0458a53bbf4c583d297051f571165d9577 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():