diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2014-06-30 01:02:14 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2014-06-30 08:36:08 -0500 |
commit | 4178350f795d568cdba861b6200bb9a33944e1c9 (patch) | |
tree | a79be6ca1e2348e0952704b1f9a8a1ff22de337e | |
parent | bc91f97fe8186b43a2b876c65b9583ac18d9aab4 (diff) |
Remove unnecessary safeguard in rotate
-rw-r--r-- | wikisort.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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); |