diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2020-11-08 10:59:08 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2020-11-08 10:59:08 +0100 |
commit | 22bb4b319b3d722ac7bf041a6374cd40afdc4d53 (patch) | |
tree | a07d7d0764a8488f4b5ebef1561e2f3d8caacc05 /src/regenc.c | |
parent | 0f259c3073f341c48468e80e93731daa31698030 (diff) | |
parent | b4158caf13bc715096c1df7c040c9d25995d76f2 (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/regenc.c')
-rw-r--r-- | src/regenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regenc.c b/src/regenc.c index dbfbc89..27e4549 100644 --- a/src/regenc.c +++ b/src/regenc.c @@ -263,12 +263,12 @@ onigenc_strlen_null(OnigEncoding enc, const UChar* s) extern int onigenc_str_bytelen_null(OnigEncoding enc, const UChar* s) { - UChar* start = (UChar* )s; - UChar* p = (UChar* )s; + const UChar* start = s; + const UChar* p = s; while (1) { if (*p == '\0') { - UChar* q; + const UChar* q; int len = ONIGENC_MBC_MINLEN(enc); if (len == 1) return (int )(p - start); |