From ae2cd094526ba0327635065bfd2f0445c6898e5c Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Thu, 11 Apr 2024 17:52:58 +0200 Subject: [PATCH] removed unecessary mormordsort if --- ypsu.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ypsu.cpp b/ypsu.cpp index 8a72d70..abc6112 100644 --- a/ypsu.cpp +++ b/ypsu.cpp @@ -219,9 +219,7 @@ static inline void mormord_sort_impl(uint32_t *a, int n, int j) noexcept { uint32_t from = real_radics[i]; /* non-inclusive */ uint32_t to = real_radics[i + 1]; - if(from < to) { // TODO: check if this "if" is needed! - mormord_sort_impl(&a[from], (to - (from)), j - 1); - } + mormord_sort_impl(&a[from], (to - (from)), j - 1); } } static inline void mormord_sort(uint32_t *a, int n) noexcept {