summaryrefslogtreecommitdiff
path: root/src/regenc.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 17:24:21 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 17:24:21 +0100
commit05d45168211fcd8f85df98e57f27785a0f739ce1 (patch)
treef2ff65f772ce0ea74533165cb9a71e0c7c0a1cf3 /src/regenc.c
parent4fdc47601d9e68343fa6818beda4c6a2012baccd (diff)
parent0801ae9d92abbf9942f89f48b2dd851650df21be (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/regenc.c')
-rw-r--r--src/regenc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regenc.c b/src/regenc.c
index 97b5052..7ded5a8 100644
--- a/src/regenc.c
+++ b/src/regenc.c
@@ -2,7 +2,7 @@
regenc.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2016 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2017 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -780,7 +780,7 @@ onigenc_mb2_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf)
if (enclen(enc, buf) != (p - buf))
return ONIGERR_INVALID_CODE_POINT_VALUE;
#endif
- return p - buf;
+ return (int )(p - buf);
}
extern int
@@ -803,7 +803,7 @@ onigenc_mb4_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf)
if (enclen(enc, buf) != (p - buf))
return ONIGERR_INVALID_CODE_POINT_VALUE;
#endif
- return p - buf;
+ return (int )(p - buf);
}
extern int