]> granicus.if.org Git - php/commitdiff
SUN CC does not like like left side casting - see bug #6759
authorJason Greene <jason@php.net>
Thu, 16 Nov 2000 22:19:48 +0000 (22:19 +0000)
committerJason Greene <jason@php.net>
Thu, 16 Nov 2000 22:19:48 +0000 (22:19 +0000)
@Fixed ext/java so that it will compile with SUN CC

ext/java/java.c
ext/rpc/java/java.c

index dddd85edd674eb83ffb5e4f3b4e80986dda49384..acf699a396b6e8f263349dd1fcbd03019d2d0d58 100644 (file)
@@ -552,7 +552,7 @@ static pval _java_getset_property
   zend_hash_index_find(property_reference->object->value.obj.properties,
     0, (void **) &pobject);
   obj = zend_list_find((*pobject)->value.lval,&type);
-  (pval*)(long)result = &presult;
+  result = (jlong)(long) &presult;
   var_uninit(&presult);
 
   if (!obj || (type!=le_jobject)) {
index dddd85edd674eb83ffb5e4f3b4e80986dda49384..acf699a396b6e8f263349dd1fcbd03019d2d0d58 100644 (file)
@@ -552,7 +552,7 @@ static pval _java_getset_property
   zend_hash_index_find(property_reference->object->value.obj.properties,
     0, (void **) &pobject);
   obj = zend_list_find((*pobject)->value.lval,&type);
-  (pval*)(long)result = &presult;
+  result = (jlong)(long) &presult;
   var_uninit(&presult);
 
   if (!obj || (type!=le_jobject)) {