summaryrefslogtreecommitdiff
path: root/Zend/zend_opcode.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-05-30 13:28:56 +0000
committerSascha Schumann <sas@php.net>1999-05-30 13:28:56 +0000
commit88029643d05a4ea1f60c8856e857ea63802fb136 (patch)
treeb23ee8d509a0df027ba49d19bdd13a3366860d33 /Zend/zend_opcode.c
parent31da7331fe0704d6b2c6a2961ef5e09c23018417 (diff)
downloadphp-git-88029643d05a4ea1f60c8856e857ea63802fb136.tar.gz
* fix some casts
* introduce unary_op_type - cleaner than casting data voids to function ptrs
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r--Zend/zend_opcode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c
index c1b93a9251..56521aeda6 100644
--- a/Zend/zend_opcode.c
+++ b/Zend/zend_opcode.c
@@ -310,17 +310,17 @@ int print_class(zend_class_entry *class_entry)
return 0;
}
-ZEND_API void *get_unary_op(int opcode)
+ZEND_API unary_op_type get_unary_op(int opcode)
{
switch(opcode) {
case ZEND_BW_NOT:
- return (void *) bitwise_not_function;
+ return bitwise_not_function;
break;
case ZEND_BOOL_NOT:
- return (void *) boolean_not_function;
+ return boolean_not_function;
break;
default:
- return (void *) NULL;
+ return (unary_op_type) NULL;
break;
}
}