diff --git a/deps/ox/src/ox/std/strops.cpp b/deps/ox/src/ox/std/strops.cpp index 3d96457b..b08988e1 100644 --- a/deps/ox/src/ox/std/strops.cpp +++ b/deps/ox/src/ox/std/strops.cpp @@ -20,13 +20,17 @@ static_assert(ox::strcmp("", "") == 0, "\"\" == \"\""); static_assert([] { auto constexpr testStr = ox::Span{"asdf"}; +OX_ALLOW_UNSAFE_BUFFERS_BEGIN return ox::strchr(testStr.data(), 0, 4) == &testStr[4]; +OX_ALLOW_UNSAFE_BUFFERS_END }(), "ox::strchr 0"); static_assert([] { auto constexpr testStr = "aaaa"; // test the const and non-const versions of ox::lastIndexOf +OX_ALLOW_UNSAFE_BUFFERS_BEGIN return ox::lastIndexOf(testStr, 'a', ox::strlen(testStr)) == 3; +OX_ALLOW_UNSAFE_BUFFERS_END }(), "ox::lastIndexOf aaaa a"); #ifndef OX_USE_STDLIB