Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2019-05-14 20:17:52 +0300
committerVladimir Byko-Ianko <bykoianko@gmail.com>2019-05-15 13:35:08 +0300
commitc11c41d67738500b0d1eeea7170a775441578cae (patch)
tree0f888fdd6ec1cef7baa4e32cde00d6dd608461e2 /editor
parent06978f4585c463e97db42f96e7140616061939c3 (diff)
Fixed some warnings.
Diffstat (limited to 'editor')
-rw-r--r--editor/changeset_wrapper.cpp5
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