mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-09 22:56:27 +00:00
VS2010 fixes
This commit is contained in:
@@ -1351,7 +1351,7 @@ class Verifier FLATBUFFERS_FINAL_CLASS {
|
||||
size_t GetComputedSize() const {
|
||||
uintptr_t size = upper_bound_ - buf_;
|
||||
// Align the size to uoffset_t
|
||||
size = (size - 1 + sizeof(uoffset_t)) & -uintptr_t(sizeof(uoffset_t));
|
||||
size = (size - 1 + sizeof(uoffset_t)) & ~(sizeof(uoffset_t) - 1);
|
||||
return (buf_ + size > end_) ? 0 : size;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user