From 2f1b17f805642bf1633a68d4e3f8e7720fe15180 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Thu, 26 Sep 2024 22:36:45 +0200 Subject: [PATCH] Fix for clang --- m-bstring.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m-bstring.h b/m-bstring.h index 13cec255..7350c295 100644 --- a/m-bstring.h +++ b/m-bstring.h @@ -78,7 +78,7 @@ m_bstring_clear(m_bstring_t s) { M_BSTRING_CONTRACT(s); M_MEMORY_FREE( s->ptr); - s->offset = -1U; + s->offset = (size_t) -1; } M_INLINE void @@ -209,7 +209,7 @@ m_bstring_init_move(m_bstring_t v, m_bstring_t org) { M_BSTRING_CONTRACT (org); memcpy(v, org, sizeof (m_bstring_t)); - org->offset = -1U; + org->offset = (size_t) -1; } M_INLINE void