aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-30 08:28:15 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-10-30 08:28:15 +0100
commit045f4bb5b1767140c4f6cfe2d2002553925c4205 (patch)
treef51b2034e91a3f67d2bde506cf84d13cfc496c6e /include
parent5dbf53a1c512f9163744874e3d502e9f9e2808da (diff)
Make string view lengths signed
Diffstat (limited to 'include')
-rw-r--r--include/_uNview.h6
1 files changed, 3 insertions, 3 deletions
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 */