Update byte_buffer to fix #741

This commit is contained in:
halx99 2022-07-11 09:12:40 +08:00
parent 3533d574f8
commit cb45692a0d
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ public:
void push_back(const _Ty& val)
{
assert(_stride == sizeof(_Ty));
_buffer.append_n((uint8_t*)&val, _stride);
_buffer.insert(_buffer.end(), &val, &val + 1);
}
/** Inserts a list containing unsigned int (uint16_t/uint32_t) data. */