Skip to content

Commit d9c9fcc

Browse files
author
Anton Shabouta
committed
WIP
1 parent c134e7c commit d9c9fcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Buffer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ template <class T> inline void Buffer::append(const T &val) noexcept {
6363
unsigned int size = sizeof(T);
6464
unsigned const char *array = reinterpret_cast<unsigned const char*>(&val);
6565

66-
buffer.insert(buffer.end(), array, array + size);
66+
for (unsigned int i = 0; i < size; ++i)
67+
buffer.push_back(array[size - i - 1]);
6768
}
6869

6970
void Buffer::appendBoolean(bool val) noexcept {

0 commit comments

Comments
 (0)