From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21385 invoked by alias); 23 May 2011 16:16:36 -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: 29356 Received: (qmail 4728 invoked from network); 23 May 2011 16:16:24 -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.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Mon, 23 May 2011 17:16:14 +0100 From: Peter Stephenson To: "Zsh Hackers' List" Subject: Re: Test failure with negative substring offsets Message-ID: <20110523171614.0069f53a@pwslap01u.europe.root.pri> In-Reply-To: <110523091052.ZM10054@torch.brasslantern.com> References: <20110523161035.747f484d@pwslap01u.europe.root.pri> <20110523165614.5e638a17@pwslap01u.europe.root.pri> <110523091052.ZM10054@torch.brasslantern.com> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.103.11.49] X-Scanned-By: MailControl A-10-80-00 (www.mailcontrol.com) on 10.71.0.122 On Mon, 23 May 2011 09:10:52 -0700 Bart Schaefer wrote: > On May 23, 4:56pm, Peter Stephenson wrote: > } > } stdarg doesn't know the arguments need to be converted to integers > to } fit the size being claimed in the printf prototype. > > Er, wouldn't it therefore have been better to change the prototype to > expect a long? It's not necessarily a long, so it would still need a cast. It would certainly have been possible to use %ld / (long)..., however. -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom