aboutsummaryrefslogtreecommitdiff
path: root/zencore/stats.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-10-07 08:45:01 +0200
committerMartin Ridgers <[email protected]>2021-10-07 11:30:39 +0200
commit96daa6047f560d2a3068253555469ba9b99c6886 (patch)
treebe55f2ff14199921b6751517026c52123686441d /zencore/stats.cpp
parentFixed misplaced nodiscard attribute (diff)
downloadzen-96daa6047f560d2a3068253555469ba9b99c6886.tar.xz
zen-96daa6047f560d2a3068253555469ba9b99c6886.zip
Fixed signed/unsigned comparison mismatch
Diffstat (limited to 'zencore/stats.cpp')
-rw-r--r--zencore/stats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/stats.cpp b/zencore/stats.cpp
index 0c0647999..1bb6f6de0 100644
--- a/zencore/stats.cpp
+++ b/zencore/stats.cpp
@@ -227,7 +227,7 @@ UniformSample::Snapshot() const
uint64_t ValuesSize = Size();
std::vector<double> Values(ValuesSize);
- for (int i = 0; i < ValuesSize; ++i)
+ for (int i = 0, n = int(ValuesSize); i < n; ++i)
{
Values[i] = double(m_Values[i]);
}