From 8c4add57e48de687dc9115cc0e43168ae1844639 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Wed, 28 Jan 2026 00:45:26 -0600 Subject: [PATCH] [ox/std] Fix build --- deps/ox/src/ox/std/strops.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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