Skip to content

Commit

Permalink
Auto merge of #79196 - RalfJung:syscall, r=m-ou-se
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
bors committed Nov 20, 2020
2 parents 5c45969 + d8d763d commit 172acf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/unix/weak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ macro_rules! syscall {
} else {
syscall(
concat_idents!(SYS_, $name),
$($arg_name as c_long),*
$($arg_name),*
) as $ret
}
}
Expand Down

0 comments on commit 172acf8

Please sign in to comment.