Re: [WIP PATCH] Add 'git fast-export', the sister of 'git fast-import'
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 21, 2007, 14:42 UTC
- Message-ID
- <Pine.LNX.4.64.0711211441000.27959@racer.site>
- In-Reply-To
- <2348F06A-F9A2-4A8F-8501-D0B696F34388@adacore.com>
Hi,
On Wed, 21 Nov 2007, Geert Bosch wrote:
Show 8 quoted lines
> 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