Skip to content

Commit adb6da3

Browse files
authored
Merge pull request JohnTitor/ctest2#41 from wesleywiser/master
2 parents 2652f52 + 2006782 commit adb6da3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ctest/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@ impl<'a> Generator<'a> {
19221922
# pragma warning(disable:4365)
19231923
#endif
19241924
{linkage} {cty} __test_roundtrip_{ty}(
1925-
{cty} value, int32_t rust_size, int* error, unsigned char* pad
1925+
int32_t rust_size, {cty} value, int* error, unsigned char* pad
19261926
) {{
19271927
volatile unsigned char* p = (volatile unsigned char*)&value;
19281928
int size = (int)sizeof({cty});
@@ -1976,7 +1976,7 @@ impl<'a> Generator<'a> {
19761976
extern {{
19771977
#[allow(non_snake_case)]
19781978
fn __test_roundtrip_{ty}(
1979-
x: U, size: i32, e: *mut c_int, pad: *const u8
1979+
size: i32, x: U, e: *mut c_int, pad: *const u8
19801980
) -> U;
19811981
}}
19821982
let pad = roundtrip_padding_{ty}();
@@ -1996,7 +1996,7 @@ impl<'a> Generator<'a> {
19961996
x_ptr.add(i).write_volatile(c);
19971997
y_ptr.add(i).write_volatile(d);
19981998
}}
1999-
let r: U = __test_roundtrip_{ty}(x.assume_init(), sz as i32, &mut error, pad.as_ptr());
1999+
let r: U = __test_roundtrip_{ty}(sz as i32, x.assume_init(), &mut error, pad.as_ptr());
20002000
if error == 1 {{
20012001
FAILED.store(true, Ordering::SeqCst);
20022002
return;

0 commit comments

Comments
 (0)