Skip to content

Commit dd560d4

Browse files
Fix compiler warning
1 parent 111780d commit dd560d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

g2o/solvers/csparse/csparse_wrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class CSparse::Impl {
7878

7979
void prepareWorkspace() {
8080
// re-allocate the temporary workspace for cholesky
81-
if (csWorkspace.size() < ccsA.n) {
81+
if (csWorkspace.size() < static_cast<size_t>(ccsA.n)) {
8282
const size_t desired_size = csWorkspace.empty() ? ccsA.n : 2 * ccsA.n;
8383
csWorkspace.resize(desired_size);
8484
csIntWorkspace.resize(2L * desired_size);

0 commit comments

Comments
 (0)