diff --git a/include/gfx/timsort.hpp b/include/gfx/timsort.hpp index fa2b462..5eb1c41 100644 --- a/include/gfx/timsort.hpp +++ b/include/gfx/timsort.hpp @@ -264,7 +264,8 @@ template class TimSort { } template - diff_t gallopLeft(ref_t key, Iter const base, diff_t const len, diff_t const hint, Compare compare) { + static diff_t gallopLeft(ref_t key, Iter const base, diff_t const len, + diff_t const hint, Compare compare) { GFX_TIMSORT_ASSERT(len > 0); GFX_TIMSORT_ASSERT(hint >= 0); GFX_TIMSORT_ASSERT(hint < len); @@ -314,7 +315,8 @@ template class TimSort { } template - diff_t gallopRight(ref_t key, Iter const base, diff_t const len, diff_t const hint, Compare compare) { + static diff_t gallopRight(ref_t key, Iter const base, diff_t const len, + diff_t const hint, Compare compare) { GFX_TIMSORT_ASSERT(len > 0); GFX_TIMSORT_ASSERT(hint >= 0); GFX_TIMSORT_ASSERT(hint < len);