[fix] making *_hash_sort_keys_by_value static
This commit is contained in:
@@ -54,7 +54,7 @@ KSORT_INIT_STR
|
||||
// Sort by value (must be defined after the vectors)
|
||||
|
||||
#define KHASH_SORT_BY_VALUE(name, key_type, val_type, val_array_name) \
|
||||
key_type *name##_hash_sort_keys_by_value(khash_t(name) *h, bool reversed) { \
|
||||
static key_type *name##_hash_sort_keys_by_value(khash_t(name) *h, bool reversed) { \
|
||||
size_t n = kh_size(h); \
|
||||
key_type *keys = malloc(sizeof(key_type) * n); \
|
||||
val_type *values = malloc(sizeof(val_type) * n); \
|
||||
|
||||
Reference in New Issue
Block a user