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.20130228/langford.h
===================================================================
--- langford-0.0.20130228.orig/langford.h
+++ langford-0.0.20130228/langford.h
@@ -109,7 +109,7 @@ typedef struct {
 /*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))
