Skip to content

Commit ac160d7

Browse files
committed
Auto merge of rust-lang#79196 - RalfJung:syscall, r=m-ou-se
unix/weak: pass arguments to syscall at the given type Given that we know the type the argument should have, it seems a bit strange not to use that information. r? `@m-ou-se` `@cuviper`
2 parents c6e44a5 + 3c82b4e commit ac160d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/sys/unix/weak.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ macro_rules! syscall {
135135
} else {
136136
syscall(
137137
concat_idents!(SYS_, $name),
138-
$($arg_name as c_long),*
138+
$($arg_name),*
139139
) as $ret
140140
}
141141
}

0 commit comments

Comments
 (0)