diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-11-02 12:00:22 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2022-11-02 12:00:22 +0100 |
commit | adf0bb14ca9a76aa88a0fe688764770d0b1fa7d8 (patch) | |
tree | 8ea9e2505b1ce311c8ae8394aeb39cdd377f9859 /plugingui | |
parent | 20ec3c82c1f972a52a4bf9bf66a5f88f7e39b92b (diff) |
Remove 'implicit conversion' warning
Diffstat (limited to 'plugingui')
-rw-r--r-- | plugingui/diskstreamingframecontent.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/diskstreamingframecontent.cc b/plugingui/diskstreamingframecontent.cc index 4c63817..5420afd 100644 --- a/plugingui/diskstreamingframecontent.cc +++ b/plugingui/diskstreamingframecontent.cc @@ -95,7 +95,7 @@ void DiskstreamingframeContent::resize(std::size_t width, std::size_t height) void DiskstreamingframeContent::limitSettingsValueChanged(std::size_t value) { - float new_slider_value = (float)(value - min_limit)/(max_limit - min_limit); + float new_slider_value = (float)(value - min_limit)/(float)(max_limit - min_limit); slider.setValue(new_slider_value); if(new_slider_value < 0.99) @@ -116,7 +116,7 @@ void DiskstreamingframeContent::limitSettingsValueChanged(std::size_t value) void DiskstreamingframeContent::limitValueChanged(float value) { std::size_t new_limit = value < 0.99 ? - value * (max_limit - min_limit) + min_limit : + value * (float)(max_limit - min_limit) + min_limit : std::numeric_limits<std::size_t>::max(); settings.disk_cache_upper_limit.store(new_limit); |