--- rxvt-unicode/src/rxvtutil.h 2006/01/30 19:46:13 1.25 +++ rxvt-unicode/src/rxvtutil.h 2006/06/23 14:31:38 1.27 @@ -4,6 +4,8 @@ #include #include +using namespace std; + #define PP_CONCAT_(a, b) a ## b #define PP_CONCAT(a, b) PP_CONCAT_(a, b) #define PP_STRINGIFY_(a) #a @@ -63,7 +65,7 @@ static inline T lerp (T a, U b, P p) { - return (int(a) * int(p) + int(b) * int(100 - p)) / 100; + return (long(a) * long(100 - p) + long(b) * long(p) + 50) / 100; } // some bit functions, xft fuck me plenty