unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* scm_sigaction_for_thread vs 64-bits
@ 2005-01-24  0:02 Kevin Ryde
  0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2005-01-24  0:02 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 248 bytes --]

        * 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.


[-- Attachment #2: scmsigs.c.long.diff --]
[-- Type: text/plain, Size: 421 bytes --]

--- 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

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-24  0:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-24  0:02 scm_sigaction_for_thread vs 64-bits Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).