[PATCH] More AIX xlc trips
| From: | Bill Stoddard | Date: | Fri, 15 Dec 2000 15:49:40 +0000 |
| Subject: | [PATCH] More AIX xlc trips | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41490@lists.php.net to get a copy of this message | ||
xlc complains that the code is attempting to assign to an lvalue. I don't
understand
the reason for the funky casting in the original (force alignment?), so the
'fix' may not be valid.
Bill
Index: servlet.c
===================================================================
RCS file: /repository/php4/sapi/servlet/servlet.c,v
retrieving revision 1.40
diff -u -r1.40 servlet.c
--- servlet.c 2000/11/18 02:44:04 1.40
+++ servlet.c 2000/12/15 15:33:53
@@ -304,7 +304,7 @@
ELS_FETCH();
MAKE_STD_ZVAL(pzval);
- (pval*)(long)addr = pzval;
+ addr = (jlong) pzval;
zend_hash_add(&EG(symbol_table), (char*)nameAsUTF,
strlen(nameAsUTF)+1, &pzval, sizeof(pval *), NULL);