Re: [Exim] warning: cast from pointer to integer of differen…

Góra strony
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Dla: Kjetil Torgrim Homme
CC: exim-users
Temat: Re: [Exim] warning: cast from pointer to integer of different size
On Mon, 22 Dec 2003, Kjetil Torgrim Homme wrote:

> I guess I have been reading too many of Chris Torek's treatises to
> comp.lang.c, but storing an integer in storage for pointers is
> unportable, a union is needed. it should work just fine on the OP's
> system, though.


The trap that I fell into was to treat "void *" as "a container that can
hold anything as long as you use suitable casts". This is just laziness
to avoid the additional coding that a union needs. I should probably
bite the bullet and tidy this up.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book