Skip to content

Commit 129cd6b

Browse files
Jonathan KliemMatthias Koeppe
authored andcommitted
specify that variables are global
1 parent 1ff620d commit 129cd6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cypari2/custom_block.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ cdef int custom_signal_is_blocked():
1616
return PARI_SIGINT_block
1717

1818
cdef void custom_signal_unblock():
19+
global PARI_SIGINT_block
1920
PARI_SIGINT_block = 0
2021

2122
cdef void custom_set_pending_signal(int sig):
23+
global PARI_SIGINT_pending
2224
PARI_SIGINT_pending = sig
2325

2426
def init_custom_block():

0 commit comments

Comments
 (0)