From 0b3e5eb6cc0f2a28ff99d2962fbb4fd340736ef9 Mon Sep 17 00:00:00 2001 From: Simonas Kazlauskas Date: Mon, 24 Sep 2018 18:01:46 +0300 Subject: Simplify implementation of align_offset slightly --- src/libcore/slice/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore/slice') diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs index aed9020d9d1..96280d70f7e 100644 --- a/src/libcore/slice/mod.rs +++ b/src/libcore/slice/mod.rs @@ -1756,7 +1756,7 @@ impl [T] { fn gcd(a: usize, b: usize) -> usize { // iterative stein’s algorithm // We should still make this `const fn` (and revert to recursive algorithm if we do) - // because relying on llvm to consteval all this is… well, it makes me + // because relying on llvm to consteval all this is… well, it makes me uncomfortable. let (ctz_a, mut ctz_b) = unsafe { if a == 0 { return b; } if b == 0 { return a; } -- cgit 1.4.1-3-g733a5