[spline] Fix compile.

Do not return the result of a void function. gcc chose to not warn about
this when removing the return parameter...
This commit is contained in:
Chris Wilson 2008-11-19 11:44:42 +00:00
parent b6c371a47f
commit 8345fedbe4

View file

@ -186,8 +186,10 @@ _cairo_spline_decompose_into (cairo_spline_knots_t *s1, double tolerance_squared
{
cairo_spline_knots_t s2;
if (_cairo_spline_error_squared (s1) < tolerance_squared)
return _cairo_spline_add_point (result, &s1->a);
if (_cairo_spline_error_squared (s1) < tolerance_squared) {
_cairo_spline_add_point (result, &s1->a);
return;
}
_de_casteljau (s1, &s2);