aboutsummaryrefslogtreecommitdiffstats
path: root/hungarian.c
diff options
context:
space:
mode:
Diffstat (limited to 'hungarian.c')
-rw-r--r--hungarian.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/hungarian.c b/hungarian.c
index faf7243..793790e 100644
--- a/hungarian.c
+++ b/hungarian.c
@@ -9,9 +9,8 @@
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
-
-
#include <sys/types.h>
+#include <limits.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
@@ -19,7 +18,6 @@
#include <string.h>
-
/**
* Cell markings
**/
@@ -457,7 +455,7 @@ static void
kuhn_add_and_subtract(size_t n, size_t m, Cell **t, Boolean row_covered[n], Boolean col_covered[m])
{
size_t i, j;
- Cell min = 0x7FFFFFFFL;
+ Cell min = LONG_MAX;
for (i = 0; i < n; i++)
if (!row_covered[i])