--- rxvt-unicode/src/rxvtutil.h 2006/01/30 19:46:13 1.25 +++ rxvt-unicode/src/rxvtutil.h 2006/01/31 16:57:35 1.26 @@ -63,7 +63,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