mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:13:05 +02:00
Fill with zeroes instead of sizeof
This commit is contained in:
parent
1f4116d283
commit
1e3ef06c35
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ static void readWriteHelper(const std::vector<bool>& src) {
|
||||||
int numBits = (int)src.size();
|
int numBits = (int)src.size();
|
||||||
int numBytes = calcBitVectorSize(numBits);
|
int numBytes = calcBitVectorSize(numBits);
|
||||||
uint8_t* bytes = new uint8_t[numBytes];
|
uint8_t* bytes = new uint8_t[numBytes];
|
||||||
memset(bytes, sizeof(uint8_t), numBytes);
|
memset(bytes, 0, numBytes);
|
||||||
int numBytesWritten = writeBitVector(bytes, numBits, [&](int i) {
|
int numBytesWritten = writeBitVector(bytes, numBits, [&](int i) {
|
||||||
return src[i];
|
return src[i];
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue