Skip to content

Commit cd148f2

Browse files
committed
Update assertion message
1 parent 52d1de6 commit cd148f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/rbs_encoding.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5001,7 +5001,7 @@ static const uint8_t rbs_utf_8_dfa[] = {
50015001
*/
50025002
static rbs_unicode_codepoint_t
50035003
rbs_utf_8_codepoint(const uint8_t *b, ptrdiff_t n, size_t *width) {
5004-
rbs_assert(n >= 0, "n must be greater than or equal to 0. Got %ti", n);
5004+
rbs_assert(n >= 0, "[rbs_unicode_codepoint_t] n must be greater than or equal to 0. Got %ti", n);
50055005

50065006
size_t maximum = (n > 4) ? 4 : ((size_t) n);
50075007
uint32_t codepoint;
@@ -5031,7 +5031,7 @@ rbs_utf_8_codepoint(const uint8_t *b, ptrdiff_t n, size_t *width) {
50315031
*/
50325032
size_t
50335033
rbs_encoding_utf_8_char_width(const uint8_t *b, ptrdiff_t n) {
5034-
rbs_assert(n >= 0, "n must be greater than or equal to 0. Got %ti", n);
5034+
rbs_assert(n >= 0, "[rbs_encoding_utf_8_char_width] n must be greater than or equal to 0. Got %ti", n);
50355035

50365036
size_t maximum = (n > 4) ? 4 : ((size_t) n);
50375037
uint32_t state = 0;

0 commit comments

Comments
 (0)