*** empty log message ***
authorroot <root>
Sun, 15 Aug 2004 07:20:16 +0000 (07:20 +0000)
committerroot <root>
Sun, 15 Aug 2004 07:20:16 +0000 (07:20 +0000)
src/rxvtutil.h

index 10b7501f2434a923b10b1abccfba5f53f1a1e344..d7aaad7cb082df02006f472da6b3cb37a68327f1 100644 (file)
@@ -12,8 +12,10 @@ public:
   static bool vax           () { return e == 0x44332211; };
 } byteorder;
 
-template<typename T, typename U> static inline T min (T a, U b) { return a < b ? a : b; }
-template<typename T, typename U> static inline T max (T a, U b) { return a > b ? a : b; }
+template<typename T, typename U>
+static inline T min (T a, U b) { return a < b ? a : (T)b; }
+template<typename T, typename U>
+static inline T max (T a, U b) { return a > b ? a : (T)b; }
 
 #include "simplevec.h"