summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wikisort.c1
1 files changed, 0 insertions, 1 deletions
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);