diff options
author | Maxim Pimenov <m@maps.me> | 2019-05-14 20:17:52 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <bykoianko@gmail.com> | 2019-05-15 13:35:08 +0300 |
commit | c11c41d67738500b0d1eeea7170a775441578cae (patch) | |
tree | 0f888fdd6ec1cef7baa4e32cde00d6dd608461e2 /generator | |
parent | 06978f4585c463e97db42f96e7140616061939c3 (diff) |
Fixed some warnings.
Diffstat (limited to 'generator')
-rw-r--r-- | generator/mwm_diff/diff.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generator/mwm_diff/diff.cpp b/generator/mwm_diff/diff.cpp index 7783deca41..a3cabdf384 100644 --- a/generator/mwm_diff/diff.cpp +++ b/generator/mwm_diff/diff.cpp @@ -9,6 +9,7 @@ #include "base/assert.hpp" #include "base/cancellable.hpp" +#include "base/checked_cast.hpp" #include "base/logging.hpp" #include <cstdint> @@ -60,7 +61,7 @@ generator::mwm_diff::DiffApplicationResult ApplyDiffVersion0( { using generator::mwm_diff::DiffApplicationResult; - vector<uint8_t> deflatedDiff(diffFileSource.Size()); + vector<uint8_t> deflatedDiff(base::checked_cast<size_t>(diffFileSource.Size())); diffFileSource.Read(deflatedDiff.data(), deflatedDiff.size()); using Inflate = coding::ZLib::Inflate; |