Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12341 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88090 invoked by uid 1010); 25 Aug 2004 00:53:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 88001 invoked from network); 25 Aug 2004 00:53:11 -0000 Received: from unknown (HELO asuka.prohost.org) (69.196.31.138) by pb1.pair.com with SMTP; 25 Aug 2004 00:53:11 -0000 Received: (qmail 11194 invoked from network); 25 Aug 2004 00:53:10 -0000 Received: from rei.nerv (HELO dummy.com) (rei@192.168.1.1) by asuka.nerv with SMTP; 25 Aug 2004 00:53:10 -0000 Reply-To: ilia@prohost.org To: internals@lists.php.net, Joe Orton Date: Tue, 24 Aug 2004 20:53:15 -0400 User-Agent: KMail/1.6.1 References: <20040824145341.GG29369@redhat.com> In-Reply-To: <20040824145341.GG29369@redhat.com> Organization: Prohost.org MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <200408242053.17252.ilia@prohost.org> Subject: Re: [PHP-DEV] [PATCH] zend_compile.c warning fix From: ilia@prohost.org (Ilia Alshanetsky) 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 {