From 4178350f795d568cdba861b6200bb9a33944e1c9 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Mon, 30 Jun 2014 01:02:14 -0500 Subject: Remove unnecessary safeguard in rotate --- wikisort.c | 1 - 1 file changed, 1 deletion(-) diff --git a/wikisort.c b/wikisort.c index db74029..ba4db55 100644 --- a/wikisort.c +++ b/wikisort.c @@ -32,7 +32,6 @@ static void reverse(char *base, size_t nmel, size_t width) /* rotates left */ static void rotate(char *base, size_t nmel, size_t width, size_t shift) { - if (shift == 0 || shift == nmel) return; reverse(base, shift, width); reverse(base + shift * width, nmel - shift, width); reverse(base, nmel, width); -- cgit v1.2.3