Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | 5c4a73ae54fd7739de8aa64391145464c29ed732 |
|---|---|
| Date: | 2009-06-15 19:07:26 |
| User: | stephan |
| Comment: | fixed a minor hash list sorting issue where the list claimed to be unsorted when it had less than two members. |
Tags And Properties
- branch=trunk inherited from [d21fde6e87]
- sym-trunk inherited from [d21fde6e87]
Changes
[hide diffs]Changes to whefs_hash.c
@@ -60,14 +60,14 @@
const whefs_hashid_list whefs_hashid_list_init = whefs_hashid_list_init_m;
int whefs_hashid_list_sort( whefs_hashid_list * li )
{
if( ! li ) return whefs_rc.ArgError;
+ li->isSorted = true;
if( li->count < 2 ) return whefs_rc.OK;
qsort( li->list, li->count, sizeof(whefs_hashid), whefs_hashid_cmp );
//qsort( li->_head, li->count, sizeof(whefs_hashid), whefs_hashid_cmp );
- li->isSorted = true;
#if 1
// shave off zeroed items...
whefs_id_type off = 0;
whefs_hashid * h = li->list;
while( ! h->id && (off<li->count) ) { ++off; ++h; }