summaryrefslogtreecommitdiff
path: root/src/cairo-spline.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-11-19 11:44:42 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-11-19 11:59:21 +0000
commit8345fedbe4d4d003c1f26a78ac7c512c04d04173 (patch)
treedad2b9b9c6fc82e9346d58c003a1ad72f70b3401 /src/cairo-spline.c
parentb6c371a47f33ec10d4d6130cc15677761df2bdfd (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.c6
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);