diff options
author | David Robillard <d@drobilla.net> | 2020-08-02 11:02:58 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 12:51:09 +0200 |
commit | d6d3cfeb3fc8dfd73998c2fee5f319b75f6757ff (patch) | |
tree | 8f2b25c77c66a012912cd8c89d571ef068e114b9 /src/gui/GraphPortModule.cpp | |
parent | c17ac70512d473fa6ab6b2f4c9fb0bd4e716d3c6 (diff) | |
download | ingen-d6d3cfeb3fc8dfd73998c2fee5f319b75f6757ff.tar.gz ingen-d6d3cfeb3fc8dfd73998c2fee5f319b75f6757ff.tar.bz2 ingen-d6d3cfeb3fc8dfd73998c2fee5f319b75f6757ff.zip |
Fix double-promotion warnings
Diffstat (limited to 'src/gui/GraphPortModule.cpp')
-rw-r--r-- | src/gui/GraphPortModule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/GraphPortModule.cpp b/src/gui/GraphPortModule.cpp index cf9858a3..a602f2f0 100644 --- a/src/gui/GraphPortModule.cpp +++ b/src/gui/GraphPortModule.cpp @@ -135,9 +135,9 @@ GraphPortModule::property_changed(const URI& key, const Atom& value) const URIs& uris = app().uris(); if (value.type() == uris.forge.Float) { if (key == uris.ingen_canvasX) { - move_to(value.get<float>(), get_y()); + move_to(static_cast<double>(value.get<float>()), get_y()); } else if (key == uris.ingen_canvasY) { - move_to(get_x(), value.get<float>()); + move_to(get_x(), static_cast<double>(value.get<float>())); } } else if (value.type() == uris.forge.String) { if (key == uris.lv2_name && |