[ox/std] Make Vector::{front,back} return Result
This commit is contained in:
2
deps/ox/src/ox/std/test/tests.cpp
vendored
2
deps/ox/src/ox/std/test/tests.cpp
vendored
@@ -18,7 +18,7 @@ std::map<std::string, std::function<ox::Error()>> tests = {
|
||||
"malloc",
|
||||
[] {
|
||||
ox::Vector<char> buff(ox::units::MB);
|
||||
ox::heapmgr::initHeap(&buff.front(), &buff.back());
|
||||
ox::heapmgr::initHeap(&buff[0], &buff[buff.size()-1]);
|
||||
oxAssert(ox::heapmgr::malloc(5) != nullptr, "malloc is broken");
|
||||
oxAssert(ox::heapmgr::malloc(5) != nullptr, "malloc is broken");
|
||||
return OxError(0);
|
||||
|
||||
Reference in New Issue
Block a user