diff options
| author | Mattias Andrée <m@maandree.se> | 2026-02-22 13:42:13 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-02-22 13:42:13 +0100 |
| commit | ff2050b9e8ec451b613332aa87d357cf08b48108 (patch) | |
| tree | 3901b22b9834ac937bb82bb542c85bc293bb0c4c /hungarian.c | |
| parent | Fix makefile (diff) | |
| download | hungarian-algorithm-n3-ff2050b9e8ec451b613332aa87d357cf08b48108.tar.gz hungarian-algorithm-n3-ff2050b9e8ec451b613332aa87d357cf08b48108.tar.bz2 hungarian-algorithm-n3-ff2050b9e8ec451b613332aa87d357cf08b48108.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'hungarian.c')
| -rw-r--r-- | hungarian.c | 6 |
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]) |
