Fix to pass FileStore::readWrite test for new FileStore
This commit is contained in:
2
deps/ox/src/ox/std/assert.hpp
vendored
2
deps/ox/src/ox/std/assert.hpp
vendored
@@ -14,4 +14,4 @@ void oxAssert(const char *file, int line, bool pass, const char *msg);
|
||||
#define ox_assert(pass, msg) oxAssert(__FILE__, __LINE__, pass, msg)
|
||||
#else
|
||||
#define ox_assert(pass, msg)
|
||||
#endif
|
||||
#endif
|
||||
|
2
deps/ox/src/ox/std/byteswap.hpp
vendored
2
deps/ox/src/ox/std/byteswap.hpp
vendored
@@ -79,7 +79,7 @@ inline T bigEndianAdapt(T i) {
|
||||
|
||||
|
||||
template<typename T>
|
||||
class LittleEndian {
|
||||
class __attribute__((packed)) LittleEndian {
|
||||
private:
|
||||
T m_value;
|
||||
|
||||
|
2
deps/ox/src/ox/std/string.hpp
vendored
2
deps/ox/src/ox/std/string.hpp
vendored
@@ -102,7 +102,7 @@ const BString<size> &BString<size>::operator+=(const char *str) {
|
||||
}
|
||||
ox_memcpy(m_buff + currentLen, str, strLen);
|
||||
// make sure last element is a null terminator
|
||||
m_buff[cap() - 1] = 0;
|
||||
m_buff[currentLen + strLen] = 0;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user