Oops. Defining max() the wrong way round was breaking rect select.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 14 Oct 2002 09:04:23 +0000 (09:04 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 14 Oct 2002 09:04:23 +0000 (09:04 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@2042 cda61777-01e9-0310-a592-d414129be87e

misc.h

diff --git a/misc.h b/misc.h
index e4e70b1..4805474 100644 (file)
--- a/misc.h
+++ b/misc.h
@@ -62,7 +62,7 @@ void debug_memdump(void *buf, int len, int L);
 #define min(x,y) ( (x) < (y) ? (x) : (y) )
 #endif
 #ifndef max
-#define max(x,y) ( (x) < (y) ? (x) : (y) )
+#define max(x,y) ( (x) > (y) ? (x) : (y) )
 #endif
 
 #endif