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/libcore/str | |
| parent | d8e309320d55e08f5bbda2f18b20a3a64198061e (diff) | |
| download | rust-3225b04c7d335b8f6e224c7d90ab95717ed84cc3.tar.gz rust-3225b04c7d335b8f6e224c7d90ab95717ed84cc3.zip | |
fallout from feature-gating unary negation on unsigned integers.
Diffstat (limited to 'src/libcore/str')
| -rw-r--r-- | src/libcore/str/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 934c4515614..c78fa803361 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -873,7 +873,7 @@ impl TwoWaySearcher { #[allow(dead_code)] #[allow(deprecated)] fn maximal_suffix(arr: &[u8], reversed: bool) -> (usize, usize) { - let mut left: usize = -1; // Corresponds to i in the paper + let mut left: usize = !0; // Corresponds to i in the paper let mut right = 0; // Corresponds to j in the paper let mut offset = 1; // Corresponds to k in the paper let mut period = 1; // Corresponds to p in the paper |
