Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12344 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21980 invoked by uid 1010); 25 Aug 2004 06:08:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 21930 invoked from network); 25 Aug 2004 06:08:46 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by pb1.pair.com with SMTP; 25 Aug 2004 06:08:46 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i7P68kS0000723 for ; Wed, 25 Aug 2004 02:08:46 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i7P68e306913 for ; Wed, 25 Aug 2004 02:08:41 -0400 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.12.10/8.12.7) with ESMTP id i7P68eHP018535 for ; Wed, 25 Aug 2004 07:08:40 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id i7P68dtD018534 for internals@lists.php.net; Wed, 25 Aug 2004 07:08:39 +0100 Date: Wed, 25 Aug 2004 07:08:39 +0100 To: internals@lists.php.net Message-ID: <20040825060839.GA18528@redhat.com> Mail-Followup-To: internals@lists.php.net References: <20040824145341.GG29369@redhat.com> <200408242053.17252.ilia@prohost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <200408242053.17252.ilia@prohost.org> User-Agent: Mutt/1.4.1i Subject: Re: [PHP-DEV] [PATCH] zend_compile.c warning fix From: jorton@redhat.com (Joe Orton) On Tue, Aug 24, 2004 at 08:53:15PM -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. gcc -Wall warns, any LP64 platform. Zend/zend_compile.c: In function `build_runtime_defined_function_key': Zend/zend_compile.c:71: warning: cast from pointer to integer of different size > 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 {