diff options
Diffstat (limited to 'runtime/map.c')
-rw-r--r-- | runtime/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/map.c b/runtime/map.c index 19c02580..1fa4a0e5 100644 --- a/runtime/map.c +++ b/runtime/map.c @@ -564,7 +564,7 @@ void _stp_map_sort (MAP map, int keynum, int dir) */ void _stp_map_sortn(MAP map, int n, int keynum, int dir) { - if (n == 0) { + if (n == 0 || n > 30) { _stp_map_sort(map, keynum, dir); } else { struct list_head *head = &map->head; |