From 4e7942bd61ac37cae1eea237a410d9b86515e700 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Thu, 14 Jun 2007 15:29:46 +0200 Subject: [PATCH] simplified usage utf8_get --- lib/unicode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/unicode.h b/lib/unicode.h index 5e8dac8f..716b1515 100644 --- a/lib/unicode.h +++ b/lib/unicode.h @@ -76,7 +76,7 @@ put1: *p++ = 0x80 | (u & 0x3f); #define UTF8_GET_NEXT if (unlikely((*p & 0xc0) != 0x80)) goto bad; u = (u << 6) | (*p++ & 0x3f) -static inline const byte * +static inline byte * utf8_get(const byte *p, uns *uu) { uns u = *p++; @@ -102,7 +102,7 @@ utf8_get(const byte *p, uns *uu) else goto bad; *uu = u; - return p; + return (byte *)p; } static inline byte * -- 2.39.5