From: Junio C Hamano Date: Thu, 07 Aug 2008 21:42:29 GMT Subject: Re: On PPC64, the parsing of integers on the commandline is bitshifted. Message-ID: <7vhc9wijsq.fsf@gitster.siamese.dyndns.org> In-Reply-To: Brandon Casey writes: > Brandon Casey wrote: >> Robin H. Johnson wrote: >>> In a 64-bit userland, big-endian environment, the parser gets integers >>> wrong. >> >> There is a fix on master. Can you try that out? >> Unfortunately, looks like it did not make it into 1.5.6.5 > > Also, just so you know, it is test-parse-options.c that is broken, not > the parsing code. So, the rest of git should be using an int with > OPT_INTEGER() and should operate correctly. Yup, that is why it is not on 'maint' --- but somebody should audit the parse_options() users in the real programs to make sure that there is no similar breakages, namely, giving a pointer to long to OPT_INTEGER().