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/libstd/rt | |
| parent | d8e309320d55e08f5bbda2f18b20a3a64198061e (diff) | |
| download | rust-3225b04c7d335b8f6e224c7d90ab95717ed84cc3.tar.gz rust-3225b04c7d335b8f6e224c7d90ab95717ed84cc3.zip | |
fallout from feature-gating unary negation on unsigned integers.
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/mod.rs b/src/libstd/rt/mod.rs index 696c7960c3e..7ea77a79619 100644 --- a/src/libstd/rt/mod.rs +++ b/src/libstd/rt/mod.rs @@ -117,7 +117,7 @@ fn lang_start(main: *const u8, argc: isize, argv: *const *const u8) -> isize { use libc; use libc::funcs::posix01::signal::signal; unsafe { - assert!(signal(libc::SIGPIPE, libc::SIG_IGN) != -1); + assert!(signal(libc::SIGPIPE, libc::SIG_IGN) != !0); } } ignore_sigpipe(); |
