mirror of
https://github.com/icewind1991/ivory.git
synced 2026-06-03 18:54:07 +02:00
minor fixes
This commit is contained in:
parent
d1f2500b31
commit
135185ca50
2 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ impl Function {
|
|||
pub fn new_with_args(
|
||||
name: *const c_char,
|
||||
handler: HandlerFunc,
|
||||
mut args: &'static [ArgInfo],
|
||||
args: &'static [ArgInfo],
|
||||
) -> Function {
|
||||
let num_args = args.len() as u32;
|
||||
let mut args_vec = Vec::new();
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ impl ExecuteData {
|
|||
let offset = (size_of::<zend_execute_data>() + size_of::<zval>() - 1) / size_of::<zval>();
|
||||
let self_ptr: *const zend_execute_data = &self.0;
|
||||
unsafe {
|
||||
transmute::<_, *const ZVal>(self_ptr).add(5)
|
||||
transmute::<_, *const ZVal>(self_ptr).add(offset)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue