Re: [PATCH] zend_compile.c warning fix

From: Date: Wed, 25 Aug 2004 01:01:43 +0000
Subject: Re: [PATCH] zend_compile.c warning fix
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-12343@lists.php.net to get a copy of this message
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


« previous php.internals (#12343) next »