diff options
author | Neil <nyamatongwe@gmail.com> | 2025-04-03 14:52:19 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-04-03 14:52:19 +1100 |
commit | b4300bf40c1134231af48cab4f38c5394976d9a1 (patch) | |
tree | 9ee9c88ab3b5f19a1933ecc5dfd02d5d2c5e9d0b /src/Document.cxx | |
parent | edb7369a2c6a19393dc413a9595a234969fc2731 (diff) | |
download | scintilla-mirror-b4300bf40c1134231af48cab4f38c5394976d9a1.tar.gz |
Turn on type conversion warnings for GCC and fix them.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index ddcf43276..8f6806824 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -120,7 +120,7 @@ void ActionDuration::AddSample(size_t numberActions, double durationOfActions) n // Most recent value contributes 25% to smoothed value. constexpr double alpha = 0.25; - const double durationOne = durationOfActions / numberActions; + const double durationOne = durationOfActions / static_cast<double>(numberActions); duration = std::clamp(alpha * durationOne + (1.0 - alpha) * duration, minDuration, maxDuration); } |