From 120299d7c33a01fe50e2c0f3f963608c74db6b5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Mon, 20 May 2013 23:09:54 +0200 Subject: [PATCH] Add macro guards --- include/ucore/saturating_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ucore/saturating_math.h b/include/ucore/saturating_math.h index 7b05905..f870222 100644 --- a/include/ucore/saturating_math.h +++ b/include/ucore/saturating_math.h @@ -8,7 +8,7 @@ ((type)((a) + (b)) >= (a) ? (a) + (b) : (max_val)) #define UC_SAT_SUB(a, b)\ -(a >= b ? (a) - (b) : 0) +((a) >= (b) ? (a) - (b) : 0) #define UC_SAT_MULT(a, b, type, max_val)\ ((b) == 0 ? 0 :\