emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warnings compiling Emacs 22 on amd64


From: Eli Zaretskii
Subject: Re: warnings compiling Emacs 22 on amd64
Date: Sun, 10 Dec 2006 00:03:28 +0200

> Date: Mon, 04 Dec 2006 11:48:15 +0100
> From: Francesco Potorti` <address@hidden>
> 
> process.c: In function 'Fsignal_process':
> process.c:6114: warning: cast from pointer to integer of different size

I think this is a real bug.  Please try this patch:

2006-12-09  Eli Zaretskii  <address@hidden>

        * process.c (Fsignal_process): Doc fix.  Use XFLOAT_DATA to
        extract the process ID from a Lisp float.

Index: src/process.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/process.c,v
retrieving revision 1.493
diff -u -p -r1.493 process.c
--- src/process.c       7 Dec 2006 11:12:21 -0000       1.493
+++ src/process.c       9 Dec 2006 21:59:32 -0000
@@ -6102,7 +6102,7 @@ If PROCESS is a network process, resume 
 DEFUN ("signal-process", Fsignal_process, Ssignal_process,
        2, 2, "sProcess (name or number): \nnSignal code: ",
        doc: /* Send PROCESS the signal with code SIGCODE.
-PROCESS may also be an integer specifying the process id of the
+PROCESS may also be a number specifying the process id of the
 process to signal; in this case, the process need not be a child of
 this Emacs.
 SIGCODE may be an integer, or a symbol whose name is a signal name.  */)
@@ -6119,7 +6119,7 @@ SIGCODE may be an integer, or a symbol w
 
   if (FLOATP (process))
     {
-      pid = (pid_t) XFLOAT (process);
+      pid = (pid_t) XFLOAT_DATA (process);
       goto got_it;
     }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]