diff options
author | Mika Kuoppala <mika.kuoppala@intel.com> | 2014-10-20 13:27:55 +0300 |
---|---|---|
committer | Mika Kuoppala <mika.kuoppala@intel.com> | 2014-10-23 12:48:05 +0300 |
commit | 4f6a6cbdfff104cd2382c09909d89bbda010dc29 (patch) | |
tree | 2ab62b71e8ee6bfaa208f35820617d290e15fa02 /lib/igt_aux.h | |
parent | 18cb650318bb2c910f95d7c7df6625110ed1a590 (diff) |
lib: fix #define max
Regression from:
commit be4710a541b517b5f8663448bffed5656d59b47b
Author: Thomas Wood <thomas.wood@intel.com>
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 <jinxianx.guo@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Diffstat (limited to 'lib/igt_aux.h')
-rw-r--r-- | lib/igt_aux.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |