summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/edge.c8
-rw-r--r--src/port.c4
2 files changed, 6 insertions, 6 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;
diff --git a/src/port.c b/src/port.c
index 3ba95b8..8b234bf 100644
--- a/src/port.c
+++ b/src/port.c
@@ -433,7 +433,7 @@ ganv_port_set_control_value(GanvPort* port,
}
if (impl->control->is_toggle) {
- if (value != 0.0) {
+ if (value != 0.0f) {
value = impl->control->max;
} else {
value = impl->control->min;
@@ -448,7 +448,7 @@ ganv_port_set_control_value(GanvPort* port,
}
if (impl->control->max == impl->control->min) {
- impl->control->max = impl->control->min + 1.0;
+ impl->control->max = impl->control->min + 1.0f;
}
const int inf = isinf(value);