From 6be38dee891591d9d07d248a884583f9d4390009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 15 Jun 2005 15:52:07 +0000 Subject: oops, declaration after code svn path=/trunk/externals/zexy/; revision=3176 --- src/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.c b/src/index.c index e7db366..84786fe 100644 --- a/src/index.c +++ b/src/index.c @@ -256,10 +256,10 @@ static void index_sort(t_index *x){ index_compact(x); /* couldn't we do it more "in-place", e.g. don't touch empty slots ? */ while(step>1){ + int i = loops; //step = (step % 2)?(step+1)/2:step/2; step+=step%2; step>>=1; - int i = loops; loops+=2; while(i--) { /* there might be some optimization in here */ -- cgit v1.2.1