--- rxvt-unicode/src/rxvtutil.h 2004/08/15 00:37:04 1.1 +++ rxvt-unicode/src/rxvtutil.h 2004/08/15 07:20:16 1.2 @@ -12,8 +12,10 @@ static bool vax () { return e == 0x44332211; }; } byteorder; -template static inline T min (T a, U b) { return a < b ? a : b; } -template static inline T max (T a, U b) { return a > b ? a : b; } +template +static inline T min (T a, U b) { return a < b ? a : (T)b; } +template +static inline T max (T a, U b) { return a > b ? a : (T)b; } #include "simplevec.h"