Skip to content

Commit

Permalink
Merge pull request #41 from wesleywiser/master
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Oct 14, 2022
2 parents 0db6046 + ed9b5d6 commit f419830
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ impl<'a> Generator<'a> {
# pragma warning(disable:4365)
#endif
{linkage} {cty} __test_roundtrip_{ty}(
{cty} value, int32_t rust_size, int* error, unsigned char* pad
int32_t rust_size, {cty} value, int* error, unsigned char* pad
) {{
volatile unsigned char* p = (volatile unsigned char*)&value;
int size = (int)sizeof({cty});
Expand Down Expand Up @@ -1976,7 +1976,7 @@ impl<'a> Generator<'a> {
extern {{
#[allow(non_snake_case)]
fn __test_roundtrip_{ty}(
x: U, size: i32, e: *mut c_int, pad: *const u8
size: i32, x: U, e: *mut c_int, pad: *const u8
) -> U;
}}
let pad = roundtrip_padding_{ty}();
Expand All @@ -1996,7 +1996,7 @@ impl<'a> Generator<'a> {
x_ptr.add(i).write_volatile(c);
y_ptr.add(i).write_volatile(d);
}}
let r: U = __test_roundtrip_{ty}(x.assume_init(), sz as i32, &mut error, pad.as_ptr());
let r: U = __test_roundtrip_{ty}(sz as i32, x.assume_init(), &mut error, pad.as_ptr());
if error == 1 {{
FAILED.store(true, Ordering::SeqCst);
return;
Expand Down

0 comments on commit f419830

Please sign in to comment.