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 committed May 31, 2022
1 parent c95556f commit a10cad3
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 a10cad3

Please sign in to comment.