aboutsummaryrefslogtreecommitdiff
path: root/lib/unicode/string/u8lower.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unicode/string/u8lower.c')
-rw-r--r--lib/unicode/string/u8lower.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/unicode/string/u8lower.c b/lib/unicode/string/u8lower.c
index 47c32f5..d5eb58c 100644
--- a/lib/unicode/string/u8lower.c
+++ b/lib/unicode/string/u8lower.c
@@ -2,6 +2,7 @@
#include <stdckdint.h>
#include "_attrs.h"
+#include "macros.h"
#include "mbstring.h"
#include "unicode/prop.h"
#include "unicode/string.h"
@@ -19,6 +20,9 @@ char8_t *
u8lower(size_t *dstn, struct u8view sv, enum caseflags flags, alloc_fn alloc,
void *alloc_ctx)
{
+ ASSUME(dstn != nullptr);
+ ASSUME(alloc != nullptr);
+
struct lcctx ctx = {
.az_or_tr = flags & CF_LANG_AZ,
.lt = flags & CF_LANG_LT,