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 /editor | |
parent | 06978f4585c463e97db42f96e7140616061939c3 (diff) |
Fixed some warnings.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/changeset_wrapper.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/editor/changeset_wrapper.cpp b/editor/changeset_wrapper.cpp index b3969b44dc..ed64dcfc7a 100644 --- a/editor/changeset_wrapper.cpp +++ b/editor/changeset_wrapper.cpp @@ -321,8 +321,8 @@ string ChangesetWrapper::TypeCountToString(TypeCount const & typeCount) // "library" -> "libraries" else if (lastTwo.back() == 'y' && kVowels.find(lastTwo.front()) == string::npos) { - long const pos = ss.tellp(); - ss.seekp(pos - 1); + auto const pos = static_cast<size_t>(ss.tellp()); + ss.seekp(static_cast<typename ostringstream::pos_type>(pos - 1)); ss << "ie"; } } @@ -351,5 +351,4 @@ string ChangesetWrapper::GetDescription() const } return result; } - } // namespace osm |