fix type discovery
authorMichael Wallner <mike@php.net>
Mon, 18 Jan 2016 13:52:29 +0000 (14:52 +0100)
committerMichael Wallner <mike@php.net>
Mon, 18 Jan 2016 13:52:29 +0000 (14:52 +0100)
src/libjit.c

index 8a766f33ca2a8d59c801e9cd35f28c3ebd8a7923..273c47890818a95cf16770f5d4fd124dbc391bcf 100644 (file)
@@ -42,6 +42,8 @@ static inline jit_type_t psi_jit_token_type(token_t t) {
                return jit_type_sys_float;
        case PSI_T_DOUBLE:
                return jit_type_sys_double;
+       case PSI_T_POINTER:
+               return jit_type_void_ptr;
        EMPTY_SWITCH_DEFAULT_CASE();
        }
 }