Made warning settings in Xcode more aggressive.

Tested: on OS X.
This commit is contained in:
Wouter van Oortmerssen
2015-06-29 15:49:13 -07:00
parent 36c7e9a962
commit 21765bea2e
3 changed files with 99 additions and 3 deletions

View File

@@ -278,7 +278,7 @@ class ResizeContext {
: schema_(schema), startptr_(flatbuf->data() + start),
delta_(delta), buf_(*flatbuf),
dag_check_(flatbuf->size() / sizeof(uoffset_t), false) {
auto mask = sizeof(largest_scalar_t) - 1;
auto mask = static_cast<int>(sizeof(largest_scalar_t) - 1);
delta_ = (delta_ + mask) & ~mask;
if (!delta_) return; // We can't shrink by less than largest_scalar_t.
// Now change all the offsets by delta_.