Date: Sun, 22 Sep 2002 14:34:40 -0700 From: Maxime Henrion <mux@freebsd.org> To: "Peter J. Blok" <Peter.Blok@inter.NL.net> Cc: freebsd-sparc@freebsd.org Subject: Re: cast void * to int Message-ID: <20020922213440.GA4530@elvis.mu.org> In-Reply-To: <200209222310.38552.Peter.Blok@inter.NL.net> References: <200209222310.38552.Peter.Blok@inter.NL.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Peter J. Blok wrote: > Hi, > > I am trying to port some modules to the sparc64 port, but I am getting > warnings on places where void * is used to store an int. > > For example the void * private, sometimes point towards something. On other > places it is used to store a 32 bit int. > > What is the nicest way to get around this? I mean when porting to a 64-bit > architecture, lots of times this must have happened. What is the "best - > freebsd" way to handle it? I can come up with a union, but that means lots of > changes. Use the C99 type intptr_t. Cheers, Maxime To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020922213440.GA4530>
