summaryrefslogtreecommitdiff
path: root/numsort.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2008-11-12 23:02:01 +0000
committerMatt Turner <mattst88@gmail.com>2008-11-12 23:02:01 +0000
commit7a57eeccd8ded740d88aba3ea9dcb09050983dd0 (patch)
tree945953d547076b67567bd99b945ec33c6ee1ea59 /numsort.c
parentb50243af303373a0af9185dd12d86b21990dde14 (diff)
Remove stupid MAXPOSLONG define (otherwise standardized as LONG_MAX)
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@13 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'numsort.c')
-rw-r--r--numsort.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/numsort.c b/numsort.c
index f0ab459..34e685f 100644
--- a/numsort.c
+++ b/numsort.c
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
+#include <limits.h>
#include "nmglobal.h"
#include "nbench1.h"
@@ -60,7 +61,7 @@ DoNumSort (void)
** minimum, then allocate for more arrays and
** try again.
*/
- if (DoNumSortIteration(arraybase, numsortstruct->arraysize, numsortstruct->numarrays)>global_min_ticks) {
+ if (DoNumSortIteration(arraybase, numsortstruct->arraysize, numsortstruct->numarrays) > global_min_ticks) {
break;
}