[xiph-commits] r14308 - icecast/trunk/avl
karl at svn.xiph.org
karl at svn.xiph.org
Sat Dec 15 09:51:33 PST 2007
Author: karl
Date: 2007-12-15 09:51:33 -0800 (Sat, 15 Dec 2007)
New Revision: 14308
Modified:
icecast/trunk/avl/avl.h
Log:
reduce wasted memory on 64bit systems, 32bit has no change
Modified: icecast/trunk/avl/avl.h
===================================================================
--- icecast/trunk/avl/avl.h 2007-12-15 17:21:22 UTC (rev 14307)
+++ icecast/trunk/avl/avl.h 2007-12-15 17:51:33 UTC (rev 14308)
@@ -12,7 +12,7 @@
#endif
#ifndef NO_THREAD
-#include <thread/thread.h>
+#include "thread/thread.h"
#else
#define thread_rwlock_create(x) do{}while(0)
#define thread_rwlock_destroy(x) do{}while(0)
@@ -31,7 +31,7 @@
* factor: 00==-1, 01==0, 10==+1.
* The rest of the bits are used for <rank>
*/
- unsigned long rank_and_balance;
+ unsigned int rank_and_balance;
#ifndef NO_THREAD
rwlock_t rwlock;
#endif
@@ -92,8 +92,8 @@
typedef struct _avl_tree {
avl_node * root;
- unsigned long height;
- unsigned long length;
+ unsigned int height;
+ unsigned int length;
avl_key_compare_fun_type compare_fun;
void * compare_arg;
#ifndef NO_THREAD
More information about the commits
mailing list