diff --git a/Algorithms/PolylineCompressor.cpp b/Algorithms/PolylineCompressor.cpp index 6a0c7255d..8824f65bd 100644 --- a/Algorithms/PolylineCompressor.cpp +++ b/Algorithms/PolylineCompressor.cpp @@ -52,7 +52,7 @@ void PolylineCompressor::encodeNumber(int number_to_encode, std::string &output) { while (number_to_encode >= 0x20) { - int next_value = (0x20 | (number_to_encode & 0x1f)) + 63; + const int next_value = (0x20 | (number_to_encode & 0x1f)) + 63; output += static_cast(next_value); if (92 == next_value) {