Skip to content

Commit

Permalink
Fix #133 : forgotten const for second argument (reported by Brian Sipos)
Browse files Browse the repository at this point in the history
  • Loading branch information
P-p-H-d committed Feb 3, 2025
1 parent 033deac commit 76b40d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions m-bstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ m_bstring_hash(const m_bstring_t v)
}

M_INLINE int
m_bstring_cmp(const m_bstring_t v1, m_bstring_t v2)
m_bstring_cmp(const m_bstring_t v1, const m_bstring_t v2)
{
M_BSTRING_CONTRACT (v1);
M_BSTRING_CONTRACT (v2);
Expand Down Expand Up @@ -286,7 +286,7 @@ m_bstring_cmp_bytes(const m_bstring_t v1, size_t s2, const void *p2)
}

M_INLINE bool
m_bstring_equal_p(const m_bstring_t v1, m_bstring_t v2)
m_bstring_equal_p(const m_bstring_t v1, const m_bstring_t v2)
{
M_BSTRING_CONTRACT (v1);
M_BSTRING_CONTRACT (v2);
Expand Down

0 comments on commit 76b40d2

Please sign in to comment.