@@ -1922,7 +1922,7 @@ impl<'a> Generator<'a> {
1922
1922
# pragma warning(disable:4365)
1923
1923
#endif
1924
1924
{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
1926
1926
) {{
1927
1927
volatile unsigned char* p = (volatile unsigned char*)&value;
1928
1928
int size = (int)sizeof({cty});
@@ -1976,7 +1976,7 @@ impl<'a> Generator<'a> {
1976
1976
extern {{
1977
1977
#[allow(non_snake_case)]
1978
1978
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
1980
1980
) -> U;
1981
1981
}}
1982
1982
let pad = roundtrip_padding_{ty}();
@@ -1996,7 +1996,7 @@ impl<'a> Generator<'a> {
1996
1996
x_ptr.add(i).write_volatile(c);
1997
1997
y_ptr.add(i).write_volatile(d);
1998
1998
}}
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());
2000
2000
if error == 1 {{
2001
2001
FAILED.store(true, Ordering::SeqCst);
2002
2002
return;
0 commit comments