diff options
| author | bors <bors@rust-lang.org> | 2020-11-20 08:46:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-20 08:46:42 +0000 |
| commit | 172acf8f61018df3719e42e633ffd62ebecaa1e7 (patch) | |
| tree | c82add3c588c900126c8da98af2f6df147c3a3fb /library/std/src/sys | |
| parent | 5c45969502b9e13f3b536aa0e94a3b059e18b95c (diff) | |
| parent | d8d763da86e6fcc7736920a7659256eb0b37cefb (diff) | |
| download | rust-172acf8f61018df3719e42e633ffd62ebecaa1e7.tar.gz rust-172acf8f61018df3719e42e633ffd62ebecaa1e7.zip | |
Auto merge of #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`
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/unix/weak.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/weak.rs b/library/std/src/sys/unix/weak.rs index 53d95dca4cd..e93a4972caa 100644 --- a/library/std/src/sys/unix/weak.rs +++ b/library/std/src/sys/unix/weak.rs @@ -135,7 +135,7 @@ macro_rules! syscall { } else { syscall( concat_idents!(SYS_, $name), - $($arg_name as c_long),* + $($arg_name),* ) as $ret } } |
