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:
parent
90c8ded449
commit
210a1ab969
|
@ -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_;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue