--- rxvt-unicode/src/rxvtutil.h 2004/08/15 00:37:04 1.1 +++ rxvt-unicode/src/rxvtutil.h 2004/08/21 05:32:00 1.3 @@ -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" @@ -114,5 +116,11 @@ delete [] *c; } }; + +struct zero_initialized { + void *operator new (size_t s); + void operator delete (void *p, size_t s); +}; + #endif