mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 09:28:03 +02:00
[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:
parent
b6c371a47f
commit
8345fedbe4
1 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue