Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12324 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8577 invoked by uid 1010); 24 Aug 2004 14:53:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8388 invoked from network); 24 Aug 2004 14:53:45 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by pb1.pair.com with SMTP; 24 Aug 2004 14:53:45 -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 i7OErjS0023322 for ; Tue, 24 Aug 2004 10:53:45 -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 i7OEria15302 for ; Tue, 24 Aug 2004 10:53:44 -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 i7OEriHP016897 for ; Tue, 24 Aug 2004 15:53:44 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id i7OErfn3016896 for internals@lists.php.net; Tue, 24 Aug 2004 15:53:41 +0100 Date: Tue, 24 Aug 2004 15:53:41 +0100 To: internals@lists.php.net Message-ID: <20040824145341.GG29369@redhat.com> Mail-Followup-To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: [PATCH] zend_compile.c warning fix From: jorton@redhat.com (Joe Orton) 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 {