fixed impact of windows fixes on other builds
This commit is contained in:
@ -108,7 +108,7 @@ TEST_CASE("DataSetTest", "[DataSetTest]") {
|
||||
CHECK(maxSize == sizeof(uint8_t) + sizeof(float) + sizeof(uint16_t) * 3);
|
||||
serSize = 0;
|
||||
/* Already reserve additional space for validity buffer, will be needed later */
|
||||
std::vector<uint8_t> buffer(maxSize);
|
||||
std::vector<uint8_t> buffer(maxSize+1);
|
||||
uint8_t* buffPtr = buffer.data();
|
||||
CHECK(localSet.serialize(&buffPtr, &serSize, maxSize, SerializeIF::Endianness::MACHINE) ==
|
||||
returnvalue::OK);
|
||||
@ -157,7 +157,7 @@ TEST_CASE("DataSetTest", "[DataSetTest]") {
|
||||
CHECK(maxSize == sizeof(uint8_t) + sizeof(uint16_t) * 3 + sizeof(float) + 1);
|
||||
serSize = 0;
|
||||
buffPtr = buffer.data();
|
||||
CHECK(localSet.serialize(&buffPtr, &serSize, maxSize, SerializeIF::Endianness::MACHINE) ==
|
||||
CHECK(localSet.serialize(&buffPtr, &serSize, buffer.size(), SerializeIF::Endianness::MACHINE) ==
|
||||
returnvalue::OK);
|
||||
CHECK(rawUint8 == 232);
|
||||
std::memcpy(&rawFloat, buffer.data() + sizeof(uint8_t), sizeof(float));
|
||||
|
Reference in New Issue
Block a user