From 2020de4dc316a5123cac09de66f4daac897c8b4a Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Sat, 26 Oct 2024 04:49:22 +0800 Subject: [PATCH] Fixed signedness for size_t in for-loop iteration. --- src/zhivo/util/VectorMath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zhivo/util/VectorMath.cpp b/src/zhivo/util/VectorMath.cpp index c48ec43..9024031 100644 --- a/src/zhivo/util/VectorMath.cpp +++ b/src/zhivo/util/VectorMath.cpp @@ -156,7 +156,7 @@ std::vector object2Vector(const DynamicObject object) { #pragma omp parallel for for(long i = 0; i < (long) objSize; ++i) - values[i] = objects[i].getNumber(); + values[(size_t) i] = objects[(size_t) i].getNumber(); return values; }