summaryrefslogtreecommitdiff
path: root/src/regposix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regposix.c')
-rw-r--r--src/regposix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regposix.c b/src/regposix.c
index 32b11b5..0fdbcbb 100644
--- a/src/regposix.c
+++ b/src/regposix.c
@@ -40,7 +40,7 @@
if (ONIGENC_MBC_MINLEN(enc) == 1) { \
UChar* tmps = (UChar* )(s); \
while (*tmps != 0) tmps++; \
- len = tmps - (UChar* )(s); \
+ len = (int )(tmps - (UChar* )(s));\
} \
else { \
len = onigenc_str_bytelen_null(enc, (UChar* )s); \