diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-11-19 11:44:42 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-11-19 11:59:21 +0000 |
commit | 8345fedbe4d4d003c1f26a78ac7c512c04d04173 (patch) | |
tree | dad2b9b9c6fc82e9346d58c003a1ad72f70b3401 /src/cairo-spline.c | |
parent | b6c371a47f33ec10d4d6130cc15677761df2bdfd (diff) |
[spline] Fix compile.
Do not return the result of a void function. gcc chose to not warn about
this when removing the return parameter...
Diffstat (limited to 'src/cairo-spline.c')
-rw-r--r-- | src/cairo-spline.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cairo-spline.c b/src/cairo-spline.c index 7ec1c56c..b5285447 100644 --- a/src/cairo-spline.c +++ b/src/cairo-spline.c @@ -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); |