diff options
author | David Robillard <d@drobilla.net> | 2012-08-10 04:34:02 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-10 04:34:02 +0000 |
commit | 93fe1d9711d2b3dd091b8b9c10926fe4dde4586c (patch) | |
tree | b0d03c08ef152e61ccca3eaae4b9d9439b8c3a1a /src/port.c | |
parent | c4a7e58fc8a4aaf2653093de0b79465a071b0b3b (diff) | |
download | ganv-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/port.c')
-rw-r--r-- | src/port.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |