From 0970a8618d5b1cbe855531b881f36c2e6e25cc90 Mon Sep 17 00:00:00 2001 From: ip_gpu Date: Mon, 30 Oct 2017 16:53:14 +0500 Subject: [PATCH] fixed from PVS-Studio: V533 It is likely that a wrong variable is being incremented inside the 'for' operator. Consider reviewing 'i'. sparsematrix.inl 212 V535 The variable 'i' is being used for this loop and for the outer loop. Check lines: 255, 256. geometry.h 256 V607 Ownerless expression 'j < remains'. allocator.h 120 --- Src/Allocator.h | 2 +- Src/Geometry.h | 1 - Src/SparseMatrix.inl | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Src/Allocator.h b/Src/Allocator.h index 3ba23d9d..58024901 100644 --- a/Src/Allocator.h +++ b/Src/Allocator.h @@ -117,7 +117,7 @@ class Allocator remains=state.remains; } else{ - for(int j=0;j SparseMatrix::operator * (const T& V) const template SparseMatrix& SparseMatrix::operator *= (const T& V) { - for( int i=0 ; i