Fix for clang

This commit is contained in:
Patrick Pelissier committed 2024-09-26 22:36:45 +02:00
1 parent 0379f5f1c6
commit 2f1b17f805
1 file changed
+2 -2
+2 -2
View File
@@ -78,7 +78,7 @@ m_bstring_clear(m_bstring_t s)
{ {
M_BSTRING_CONTRACT(s); M_BSTRING_CONTRACT(s);
M_MEMORY_FREE( s->ptr); M_MEMORY_FREE( s->ptr);
s->offset = -1U; s->offset = (size_t) -1;
} }
M_INLINE void M_INLINE void
@@ -209,7 +209,7 @@ m_bstring_init_move(m_bstring_t v, m_bstring_t org)
{ {
M_BSTRING_CONTRACT (org); M_BSTRING_CONTRACT (org);
memcpy(v, org, sizeof (m_bstring_t)); memcpy(v, org, sizeof (m_bstring_t));
org->offset = -1U; org->offset = (size_t) -1;
} }
M_INLINE void M_INLINE void