From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3218 invoked by alias); 23 May 2011 16:34:11 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29359 Received: (qmail 17229 invoked from network); 23 May 2011 16:34:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=MCP30i+ip8mr+zJLanT1KSxvFMev3c+YtDKKZ7O6/Ps=; b=rAh0xj0fqvqvA6meZPVUfFFTEWoKY2JU80GJRgzBRcQhWMygOZbSuu+ZfwQhqXhGXC U/K/cnjN1iQgDTIpAKfe7fdaJfV2+J/lXmn3dK03TjHtpWdObREc4zw9w6sNTBddf+id 0CpypS4AkN8jv86pAeWi0G3rYvOr4RBg4kXlE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=WWkNyqNjYvOoutAVPUHdKFBuTTw8qsdBkKoj3kUJQdmm3/CiwfMqfi1NLK1h/TiGp8 sVf400HdFF+uN3hWgmGC9+/hRwVCK6IXV0rEQ1miRn1L8Nvdp0zw02fKlk7FrORtiehv xi6HQSbes11AZHvowr1VyYZs8qKTidHG1nDgo= MIME-Version: 1.0 In-Reply-To: <20110523172709.42f96f85@pwslap01u.europe.root.pri> References: <20110523161035.747f484d@pwslap01u.europe.root.pri> <20110523165614.5e638a17@pwslap01u.europe.root.pri> <110523091052.ZM10054@torch.brasslantern.com> <20110523172709.42f96f85@pwslap01u.europe.root.pri> Date: Mon, 23 May 2011 18:34:03 +0200 Message-ID: Subject: Re: Test failure with negative substring offsets From: Mikael Magnusson To: Peter Stephenson Cc: "Zsh Hackers' List" Content-Type: text/plain; charset=UTF-8 On 23 May 2011 18:27, Peter Stephenson wrote: > On Mon, 23 May 2011 18:19:04 +0200 > Mikael Magnusson 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