From 045f4bb5b1767140c4f6cfe2d2002553925c4205 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 30 Oct 2024 08:28:15 +0100 Subject: Make string view lengths signed --- include/_uNview.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/_uNview.h b/include/_uNview.h index 1001807..1edbfde 100644 --- a/include/_uNview.h +++ b/include/_uNview.h @@ -7,17 +7,17 @@ typedef struct { const char8_t *p; - size_t len; + ptrdiff_t len; } u8view_t; typedef struct { const char16_t *p; - size_t len; + ptrdiff_t len; } u16view_t; typedef struct { const char32_t *p; - size_t len; + ptrdiff_t len; } u32view_t; #endif /* !MLIB__UNVIEW_H */ -- cgit v1.2.3