lkml.org 
[lkml]   [2007]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: void* arithmnetic
On Thu, 29 Nov 2007, WANG Cong wrote:
> On Thu, Nov 29, 2007 at 09:38:46AM +0200, Benny Halevy wrote:
> >On Nov. 29, 2007, 3:19 +0200, "Ming Lei" <tom.leiming@gmail.com> wrote:
> >> 2007/11/29, Jan Engelhardt <jengelh@computergmbh.de>:
> >>> On Nov 29 2007 01:05, J.A. Magallón wrote:
> >>>> Since begin of the ages the build of the nvidia driver says things like
> >>>> this:
> >>>>
> >>> Explicitly adding -Wpointer-arith to ones own Makefile is like
> >>> admitting the code might be problematic. :->
> >>>
> >>>
> >>> I think sizeof(void *) == 1 is taken as granted as sizeof(int) >= 4
> >>> these days. Sigh.
> >> sizeof(void *) == 4, sizeof(void)==1, :)
> >well, sizeof(void *) == sizeof(unsigned long) maybe :)
>
> I *heard* that on Win64 sizeof(void *) > sizeof(long). But it's off-topic
> here. ;-)

Yes, Win64 is P64, to make sure it's incompatible with the rest of the
world.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
\
 
 \ /
  Last update: 2007-11-30 12:41    [W:0.042 / U:0.720 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site