diff options
Diffstat (limited to 'moses/Syntax/Cube.cpp')
-rw-r--r-- | moses/Syntax/Cube.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/Syntax/Cube.cpp b/moses/Syntax/Cube.cpp index 0249291d3..6cbf72903 100644 --- a/moses/Syntax/Cube.cpp +++ b/moses/Syntax/Cube.cpp @@ -56,7 +56,7 @@ void Cube::CreateNeighbours(const std::vector<int> &coordinates) // Create each neighbour along the vertex stack dimensions. for (std::size_t i = 0; i < coordinates.size()-1; ++i) { - int x = coordinates[i]; + const std::size_t x = coordinates[i]; if (m_bundle.stacks[i]->size() > x+1) { ++tmpCoordinates[i]; CreateNeighbour(tmpCoordinates); @@ -64,7 +64,7 @@ void Cube::CreateNeighbours(const std::vector<int> &coordinates) } } // Create the neighbour along the translation dimension. - int x = coordinates.back(); + const std::size_t x = coordinates.back(); if (m_bundle.translations->GetSize() > x+1) { ++tmpCoordinates.back(); CreateNeighbour(tmpCoordinates); |