aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util.c b/util.c
index 585f81b..da5e8b0 100644
--- a/util.c
+++ b/util.c
@@ -146,15 +146,15 @@ statename(int state)
}
int
-max(int a, int b)
+min(int a, int b)
{
- return a > b? a: b;
+ return a < b? a: b;
}
int
-min(int a, int b)
+max(int a, int b)
{
- return a < b? a: b;
+ return a > b? a: b;
}
int