diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-04-01 12:36:37 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-04-01 22:34:27 +0200 |
| commit | 3225b04c7d335b8f6e224c7d90ab95717ed84cc3 (patch) | |
| tree | 34beda4f71cb45733e874317ea745f167e38f9f3 /src/liblibc/lib.rs | |
| parent | d8e309320d55e08f5bbda2f18b20a3a64198061e (diff) | |
| download | rust-3225b04c7d335b8f6e224c7d90ab95717ed84cc3.tar.gz rust-3225b04c7d335b8f6e224c7d90ab95717ed84cc3.zip | |
fallout from feature-gating unary negation on unsigned integers.
Diffstat (limited to 'src/liblibc/lib.rs')
| -rw-r--r-- | src/liblibc/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index b7162c4a177..77e18be298b 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -4696,7 +4696,7 @@ pub mod consts { pub const MAP_FIXED : c_int = 0x0010; pub const MAP_ANON : c_int = 0x1000; - pub const MAP_FAILED : *mut c_void = -1 as *mut c_void; + pub const MAP_FAILED : *mut c_void = !0 as *mut c_void; pub const MCL_CURRENT : c_int = 0x0001; pub const MCL_FUTURE : c_int = 0x0002; |
