]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #53116 - jakllsch:netbsd-unsigned-char, r=alexcrichton
authorkennytm <kennytm@gmail.com>
Thu, 9 Aug 2018 08:58:44 +0000 (16:58 +0800)
committerGitHub <noreply@github.com>
Thu, 9 Aug 2018 08:58:44 +0000 (16:58 +0800)
NetBSD: fix signedess of char

src/libstd/os/raw/mod.rs

index d5eeb5252f0f155a59589fd4c099075d14fda114..4b8dda493b0979be056b3bb0ef3ab897b367f6b8 100644 (file)
@@ -29,6 +29,8 @@
           all(target_os = "android", any(target_arch = "aarch64",
                                          target_arch = "arm")),
           all(target_os = "l4re", target_arch = "x86_64"),
+          all(target_os = "netbsd", any(target_arch = "arm",
+                                        target_arch = "powerpc")),
           all(target_os = "openbsd", target_arch = "aarch64"),
           all(target_os = "fuchsia", target_arch = "aarch64")))]
 #[stable(feature = "raw_os", since = "1.1.0")] pub type c_char = u8;
@@ -41,6 +43,8 @@
               all(target_os = "android", any(target_arch = "aarch64",
                                              target_arch = "arm")),
               all(target_os = "l4re", target_arch = "x86_64"),
+              all(target_os = "netbsd", any(target_arch = "arm",
+                                            target_arch = "powerpc")),
               all(target_os = "openbsd", target_arch = "aarch64"),
               all(target_os = "fuchsia", target_arch = "aarch64"))))]
 #[stable(feature = "raw_os", since = "1.1.0")] pub type c_char = i8;