[core] fix warnings with Xcode 11's updated Clang version

This commit is contained in:
Konstantin Käfer
2019-06-03 22:32:25 +02:00
parent 6742017a9a
commit 892699a39a
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ public:
// https://developer.apple.com/documentation/foundation/nsstring/1414561-compare
NSRange compareRange = NSMakeRange(0, nsLhs.length);
return [nsLhs compare:nsRhs options:options range:compareRange locale:locale];
return static_cast<int>([nsLhs compare:nsRhs options:options range:compareRange locale:locale]);
}
std::string resolvedLocale() const {

View File

@@ -34,7 +34,7 @@ public:
RenderTile(const RenderTile&) = delete;
RenderTile(RenderTile&&) = default;
RenderTile& operator=(const RenderTile&) = delete;
RenderTile& operator=(RenderTile&&) = default;
RenderTile& operator=(RenderTile&&) = delete;
UnwrappedTileID id;
mat4 matrix;