Remove spurious const qualifier from function return type

This commit is contained in:
Nikita Popov 2020-02-06 11:59:52 +01:00
parent 53e527ad43
commit d4de3f95d6
2 changed files with 2 additions and 2 deletions

View file

@ -59485,7 +59485,7 @@ ZEND_API int zend_vm_kind(void)
return ZEND_VM_KIND;
}
static const uint32_t ZEND_FASTCALL zend_vm_get_opcode_handler_idx(uint32_t spec, const zend_op* op)
static uint32_t ZEND_FASTCALL zend_vm_get_opcode_handler_idx(uint32_t spec, const zend_op* op)
{
static const int zend_vm_decode[] = {
_UNUSED_CODE, /* 0 = IS_UNUSED */

View file

@ -2696,7 +2696,7 @@ function gen_vm($def, $skel) {
out($f, "\n");
// Generate zend_vm_get_opcode_handler() function
out($f, "static const uint32_t ZEND_FASTCALL zend_vm_get_opcode_handler_idx(uint32_t spec, const zend_op* op)\n");
out($f, "static uint32_t ZEND_FASTCALL zend_vm_get_opcode_handler_idx(uint32_t spec, const zend_op* op)\n");
out($f, "{\n");
if (!ZEND_VM_SPEC) {
out($f, "\treturn spec;\n");