summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/riva_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/riva_hw.c b/src/riva_hw.c
index c178eac..9903625 100644
--- a/src/riva_hw.c
+++ b/src/riva_hw.c
@@ -101,7 +101,7 @@ static int ShowHideCursor
#define GFIFO_SIZE_128 256
#define MFIFO_SIZE 120
#define VFIFO_SIZE 256
-#define ABS(a) (a>0?a:-a)
+#define ABS(a) ((a) > 0 ? (a) : -(a))
typedef struct {
int gdrain_rate;
int vdrain_rate;