From: Johannes Schindelin Date: Wed, 21 Nov 2007 14:42:06 GMT Subject: Re: [WIP PATCH] Add 'git fast-export', the sister of 'git fast-import' Message-ID: In-Reply-To: <2348F06A-F9A2-4A8F-8501-D0B696F34388@adacore.com> Hi, On Wed, 21 Nov 2007, Geert Bosch wrote: > On Nov 20, 2007, at 22:40, Johannes Schindelin wrote: > > Oh, and it relies on "int" being castable to void * and vice > > versa. Is anybody aware of a platform where this can lead to > > problems? > > Like any 64-bit system? int is 32 bit and void * is 64. So, casting a > pointer to an int drops half the bits. When you convert it back it will > point to a funny place... Have you even read the patch? Like I pointed out in my reply to Hannes, I only need the guarantee that i == (int)(void *)i for all integers i. Ciao, Dscho