]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Oops. Defining max() the wrong way round was breaking rect select.
authorSimon Tatham <anakin@pobox.com>
Mon, 14 Oct 2002 09:04:23 +0000 (09:04 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 14 Oct 2002 09:04:23 +0000 (09:04 +0000)
[originally from svn r2042]

misc.h

diff --git a/misc.h b/misc.h
index e4e70b1f89cc916ea49ccefff192a0249d68aece..48054745bffb45e229f653e451288eece70cc3d8 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