diff options
Diffstat (limited to 'vendor/librune/lib/utf8/u8chk.c')
-rw-r--r-- | vendor/librune/lib/utf8/u8chk.c | 5 |
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; } |