Fixed endianness Vector's begin() and end()

This commit is contained in:
Raphael Zulliger 2015-05-13 16:25:56 +02:00
parent 4d213c2d06
commit 04a06781f5
1 changed files with 2 additions and 2 deletions

View File

@ -286,8 +286,8 @@ public:
iterator begin() { return iterator(Data(), 0); }
const_iterator begin() const { return const_iterator(Data(), 0); }
iterator end() { return iterator(Data(), length_); }
const_iterator end() const { return const_iterator(Data(), length_); }
iterator end() { return iterator(Data(), EndianScalar(length_)); }
const_iterator end() const { return const_iterator(Data(), EndianScalar(length_)); }
// Change elements if you have a non-const pointer to this object.
void Mutate(uoffset_t i, T val) {