Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12343 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15583 invoked by uid 1010); 25 Aug 2004 01:01:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15488 invoked from network); 25 Aug 2004 01:01:47 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 25 Aug 2004 01:01:47 -0000 Received: (qmail 21309 invoked from network); 25 Aug 2004 01:01:45 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 25 Aug 2004 01:01:45 -0000 Message-ID: <5.1.0.14.2.20040824180136.02e1d0c0@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 24 Aug 2004 18:01:43 -0700 To: ilia@prohost.org,internals@lists.php.net,Joe Orton In-Reply-To: <200408242053.17252.ilia@prohost.org> References: <20040824145341.GG29369@redhat.com> <20040824145341.GG29369@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] [PATCH] zend_compile.c warning fix From: andi@zend.com (Andi Gutmans) Probably 64bit system? At 08:53 PM 8/24/2004 -0400, Ilia Alshanetsky wrote: >What compiler flags are you using that you see this warning message? I do not >see on the local build here. > >Ilia > >On August 24, 2004 10:53 am, Joe Orton wrote: > > If casting pointers to integers at least cast to a long, to avoid > > compiler warnings: > > > > --- Zend/zend_compile.c 23 Aug 2004 20:58:48 -0000 1.581 > > +++ Zend/zend_compile.c 24 Aug 2004 14:50:31 -0000 > > @@ -68,7 +68,7 @@ > > uint char_pos_len; > > char *filename; > > > > - char_pos_len = zend_sprintf(char_pos_buf, "%x", (unsigned int) > > LANG_SCNG(_yy_last_accepting_cpos)); + char_pos_len = > > zend_sprintf(char_pos_buf, "%lx", (unsigned long) > > LANG_SCNG(_yy_last_accepting_cpos)); if (CG(active_op_array)->filename) { > > filename = CG(active_op_array)->filename; > > } else { > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php