Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Test failure with negative substring offsets



On 23 May 2011 18:27, Peter Stephenson <Peter.Stephenson@xxxxxxx> wrote:
> On Mon, 23 May 2011 18:19:04 +0200
> Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>> But maybe the autoconf macro
>> could define a ZSH_PRINTF_SPECIFIER to %ld or %lld depending on what
>> zlong is?
>
> That would be useful, unfortunately those aren't the only cases...
>
>     if test "$zsh_cv_64_bit_type" = no; then
>       zsh_64_BIT_TYPE(quad_t, zsh_cv_64_bit_type)
>     fi
>     if test "$zsh_cv_64_bit_type" = no; then
>       zsh_64_BIT_TYPE(__int64_t, zsh_cv_64_bit_type)
>     fi
>
> I'd settle for just casting to long here.

Where do you mean? %d and (long)foo shouldn't work, it would need to
be %ld. Or you mean in those two cases? Then we would need a
ZSH_POSSIBLY_CAST_WEIRD_TYPE_TO_LONG define too :).

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author