summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-20 08:46:42 +0000
committerbors <bors@rust-lang.org>2020-11-20 08:46:42 +0000
commit172acf8f61018df3719e42e633ffd62ebecaa1e7 (patch)
treec82add3c588c900126c8da98af2f6df147c3a3fb /library/std/src/sys
parent5c45969502b9e13f3b536aa0e94a3b059e18b95c (diff)
parentd8d763da86e6fcc7736920a7659256eb0b37cefb (diff)
downloadrust-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.rs2
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
             }
         }