diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-04-01 11:58:20 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-04-01 11:58:20 +0300 |
commit | d806340faadd79524b3adccef6cbced20cd88396 (patch) | |
tree | 31ff37862e0603576bf3c0111149af70ff7578ef /array.c | |
parent | 6aed27e0a553cb31800bbaeee1bf8e96a98abb12 (diff) | |
download | egawk-d806340faadd79524b3adccef6cbced20cd88396.tar.gz egawk-d806340faadd79524b3adccef6cbced20cd88396.tar.bz2 egawk-d806340faadd79524b3adccef6cbced20cd88396.zip |
Fix array sorting, add test case.
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1433,8 +1433,8 @@ sort_up_index_number(const void *p1, const void *p2) /* break a tie with the index string itself */ if (ret == 0) - return sort_up_index_string((const void *) n1->sort_index, - (const void *) n2->sort_index); + return sort_up_index_string((const void *) &n1->sort_index, + (const void *) &n2->sort_index); return ret; } |