Cast the result of flerpf
We're currently only casting the first operand of the lerp
implementation, not the result of the operation.
@@ -113,7 +113,7 @@ graphene_approx_val (float a, float b)
static inline float
graphene_flerpf (float a, float b, double factor)
{
- return (float) ((1.0 - factor) * (double) a) + (factor * (double) b);
+ return (float) (((1.0 - factor) * (double) a) + (factor * (double) b));
}
static inline double
