[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scm_sigaction_for_thread vs 64-bits
From: |
Kevin Ryde |
Subject: |
scm_sigaction_for_thread vs 64-bits |
Date: |
Mon, 24 Jan 2005 11:02:35 +1100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
* scmsigs.c (scm_sigaction_for_thread): Use scm_to_long for
sa_handler, needs to be a long on 64-bit systems where int is only 32
bits.
This was a long in 1.6 (the return from SCM_INUM), so this goes back
to that I guess.
--- scmsigs.c.~1.88.~ 2005-01-04 11:16:55.000000000 +1100
+++ scmsigs.c 2005-01-24 11:00:08.000000000 +1100
@@ -333,7 +333,7 @@
|| SCM_NUM2LONG (2, handler) == (long) SIG_IGN)
{
#ifdef HAVE_SIGACTION
- action.sa_handler = (SIGRETTYPE (*) (int)) scm_to_int (handler);
+ action.sa_handler = (SIGRETTYPE (*) (int)) scm_to_long (handler);
#else
chandler = (SIGRETTYPE (*) (int)) scm_to_int (handler);
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- scm_sigaction_for_thread vs 64-bits,
Kevin Ryde <=