From 4f6a6cbdfff104cd2382c09909d89bbda010dc29 Mon Sep 17 00:00:00 2001 From: Mika Kuoppala Date: Mon, 20 Oct 2014 13:27:55 +0300 Subject: lib: fix #define max Regression from: commit be4710a541b517b5f8663448bffed5656d59b47b Author: Thomas Wood Date: Fri Oct 10 11:20:35 2014 +0100 lib: add common min and max macros Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85218 Tested-by: Guo Jinxian Signed-off-by: Mika Kuoppala --- lib/igt_aux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/igt_aux.h') diff --git a/lib/igt_aux.h b/lib/igt_aux.h index 415614b4..9b42918f 100644 --- a/lib/igt_aux.h +++ b/lib/igt_aux.h @@ -85,6 +85,6 @@ bool intel_check_memory(uint32_t count, uint32_t size, unsigned mode); #define min(a, b) ((a) < (b) ? (a) : (b)) -#define max(a, b) ((a) < (b) ? (a) : (b)) +#define max(a, b) ((a) > (b) ? (a) : (b)) #endif /* IGT_AUX_H */ -- cgit v1.2.3