Fixed build error in Visual Studio 2017 (#4353)

flatbuffers.h(591): error C2220: warning treated as error - no 'object' file generated
flatbuffers.h(591): warning C4267: 'return': conversion from 'size_t' to 'flatbuffers::uoffset_t', possible loss of data
This commit is contained in:
Stephen Lane-Walsh 2017-06-16 12:53:53 -04:00 committed by Wouter van Oortmerssen
parent 90c8ded449
commit 210a1ab969
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ class vector_downward {
return static_cast<uoffset_t>(reserved_ - (cur_ - buf_));
}
uoffset_t capacity() const {
size_t capacity() const {
return reserved_;
}