aboutsummaryrefslogtreecommitdiff
path: root/vendor/librune/lib/utf8/u8chk.c
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-27 23:26:42 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-27 23:26:42 +0100
commit679f7928e27a95e559eb3a69febf0c6336e40234 (patch)
treeaf9c5bb35253086eb8e3ad3d7774e7349b3beefe /vendor/librune/lib/utf8/u8chk.c
parentfd502fd87b40ae7f60314d8d9009f739f1c5fcf3 (diff)
Bump librune
Diffstat (limited to 'vendor/librune/lib/utf8/u8chk.c')
-rw-r--r--vendor/librune/lib/utf8/u8chk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/librune/lib/utf8/u8chk.c b/vendor/librune/lib/utf8/u8chk.c
index 422bbd8..4fd1afc 100644
--- a/vendor/librune/lib/utf8/u8chk.c
+++ b/vendor/librune/lib/utf8/u8chk.c
@@ -1,9 +1,10 @@
#include "rune.h"
+#define _RUNE_NO_MACRO_WRAPPER 1
#include "utf8.h"
#include "internal/common.h"
-const char8_t *
+char8_t *
u8chk(const char8_t *s, size_t n)
{
while (n) {
@@ -11,7 +12,7 @@ u8chk(const char8_t *s, size_t n)
int m = u8tor(&ch, s);
if (ch == RUNE_ERROR)
- return s;
+ return (char8_t *)s;
n -= m;
}