Skip to content

Commit

Permalink
specify that variables are global
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem authored and Matthias Koeppe committed Mar 24, 2024
1 parent 5a391b1 commit 7eb6beb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypari2/custom_block.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 7eb6beb

Please sign in to comment.