emacs-devel
[Top][All Lists]
Advanced

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

Re: Cast to void* breaks compilation


From: Andreas Schwab
Subject: Re: Cast to void* breaks compilation
Date: Thu, 03 Jan 2002 12:18:26 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.30 (ia64-suse-linux)

Juanma Barranquero <address@hidden> writes:

|> 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 *)?

No, IMHO it is just lacking a pair of parentheses around submaps + nmaps.
A cast to (Lisp_Object *) would be a no-op.

Andreas.

-- 
Andreas Schwab                                  "And now for something
address@hidden                          completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5



reply via email to

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