1
Fork 0

test: Fix tests.

This commit is contained in:
Patrick Walton 2013-04-26 14:04:39 -07:00
parent f30f54e9d0
commit 876483dcf4
31 changed files with 114 additions and 190 deletions

View file

@ -365,7 +365,9 @@ impl gen_init for protocol {
|s| ext_cx.parse_stmt(
fmt!("data.%s.set_buffer(buffer)",
s.name))),
ext_cx.parse_expr(fmt!("&(data.%s)", self.states[0].name))));
ext_cx.parse_expr(fmt!(
"::core::ptr::to_unsafe_ptr(&(data.%s))",
self.states[0].name))));
quote_expr!({
let buffer = $buffer;