summaryrefslogtreecommitdiffstats
path: root/src/edge.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-10 04:34:02 +0000
committerDavid Robillard <d@drobilla.net>2012-08-10 04:34:02 +0000
commit93fe1d9711d2b3dd091b8b9c10926fe4dde4586c (patch)
treeb0d03c08ef152e61ccca3eaae4b9d9439b8c3a1a /src/edge.c
parentc4a7e58fc8a4aaf2653093de0b79465a071b0b3b (diff)
downloadganv-93fe1d9711d2b3dd091b8b9c10926fe4dde4586c.tar.gz
ganv-93fe1d9711d2b3dd091b8b9c10926fe4dde4586c.tar.bz2
ganv-93fe1d9711d2b3dd091b8b9c10926fe4dde4586c.zip
Fix unnecessary implicit float=>double conversions.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@4645 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/edge.c')
-rw-r--r--src/edge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/edge.c b/src/edge.c
index 2668c41..1a726c8 100644
--- a/src/edge.c
+++ b/src/edge.c
@@ -273,10 +273,10 @@ ganv_edge_update(GanvItem* item, int flags)
coords->handle_x = coords->x1 + (dx / 2.0);
coords->handle_y = coords->y1 + (dy / 2.0);
- coords->cx1 = coords->x1 + (coords->cx1 * (ceilf(fabs(dx)) / 4.0));
- coords->cy1 = coords->y1 + (coords->cy1 * (ceilf(fabs(dy)) / 4.0));
- coords->cx2 = coords->x2 + (coords->cx2 * (ceilf(fabs(dx)) / 4.0));
- coords->cy2 = coords->y2 + (coords->cy2 * (ceilf(fabs(dy)) / 4.0));
+ coords->cx1 = coords->x1 + (coords->cx1 * (ceil(fabs(dx)) / 4.0));
+ coords->cy1 = coords->y1 + (coords->cy1 * (ceil(fabs(dy)) / 4.0));
+ coords->cx2 = coords->x2 + (coords->cx2 * (ceil(fabs(dx)) / 4.0));
+ coords->cy2 = coords->y2 + (coords->cy2 * (ceil(fabs(dy)) / 4.0));
// Update old coordinates
impl->old_coords = impl->coords;