Description: Fix MIN/MAX macros
 These macros did not properly guard against operator precedence issues.
Author: Simon Richter <sjr@debian.org>
Last-Update: 2013-01-08

Index: langford-0.0.20130221/langford.h
===================================================================
--- langford-0.0.20130221.orig/langford.h	2013-04-04 18:18:17.499472037 +0200
+++ langford-0.0.20130221/langford.h	2013-04-04 18:18:21.151471955 +0200
@@ -108,7 +108,7 @@
 /*Program macros*/
 
 /**Given 2 numbers, return the larger one*/
-#define MAX(a, b)			((a > b) ? a : b)
+#define MAX(a, b)			(((a) > (b)) ? (a) : (b))
 
 /**Given 2 numbers, return the smaller one*/
-#define MIN(a, b)			((a < b) ? a : b)
+#define MIN(a, b)			(((a) < (b)) ? (a) : (b))
