emacs-devel
[Top][All Lists]
Advanced

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

Cast to void* breaks compilation


From: Juanma Barranquero
Subject: Cast to void* breaks compilation
Date: Thu, 03 Jan 2002 11:19:21 +0100

This patch breaks compilation on W2K / Visual C

2002-01-02  Richard M. Stallman  <address@hidden>

        * keyboard.c (read_key_sequence): Handle the keymap property
        before minor mode maps.

because of the cast to void*.

      bcopy (maps, (void *) submaps + nmaps,
             nminor * sizeof (submaps[0]));

Perhaps it should be (Lisp_Object *)?

                                                           /L/e/k/t/u


Index: keyboard.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/keyboard.c,v
retrieving revision 1.646
diff -u -r1.646 keyboard.c
--- keyboard.c  2 Jan 2002 21:54:11 -0000       1.646
+++ keyboard.c  3 Jan 2002 10:18:17 -0000
@@ -8129,7 +8129,7 @@
       if (!NILP (orig_keymap))
        submaps[nmaps++] = orig_keymap;
 
-      bcopy (maps, (void *) submaps + nmaps,
+      bcopy (maps, (Lisp_Object *) submaps + nmaps,
             nminor * sizeof (submaps[0]));
 
       nmaps += nminor;




reply via email to

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