From 083384f0d9541e7b4ca152ffda11bf9d7952b712 Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 13 Dec 2005 21:47:52 +0000 Subject: 2005-12-13 Martin Hunt * map.c (_stp_map_sortn): Set a limit of 30 for n. Automatically call _stp_map_sort() if more is requested. --- runtime/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/map.c') 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; -- cgit