[libxml2] Fix mixed decls and code in timsort.h
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Fix mixed decls and code in timsort.h
- Date: Sat, 21 Oct 2017 13:21:52 +0000 (UTC)
commit 5e986e3b3377a39d9f965297c15c748ea52fccf6
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Sat Oct 21 15:09:33 2017 +0200
Fix mixed decls and code in timsort.h
timsort.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/timsort.h b/timsort.h
index 6772928..0c6346b 100644
--- a/timsort.h
+++ b/timsort.h
@@ -528,17 +528,17 @@ static __inline int PUSH_NEXT(SORT_TYPE *dst,
}
void TIM_SORT(SORT_TYPE *dst, const size_t size) {
- /* don't bother sorting an array of size 1 */
- if (size <= 1) {
- return;
- }
-
size_t minrun;
TEMP_STORAGE_T _store, *store;
TIM_SORT_RUN_T run_stack[TIM_SORT_STACK_SIZE];
size_t stack_curr = 0;
size_t curr = 0;
+ /* don't bother sorting an array of size 1 */
+ if (size <= 1) {
+ return;
+ }
+
if (size < 64) {
BINARY_INSERTION_SORT(dst, size);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]