summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-05-17 11:33:22 +0000
committerBram Moolenaar <Bram@vim.org>2009-05-17 11:33:22 +0000
commit2c4278fc738cca3fcd70cffd7ddc865ea9783694 (patch)
treeb6cf40176c3e3904782d82ab2cacc5afeb1d3d75 /src/macros.h
parentbf0c4526bf4bac6f7193cacf2ad1c8802f84be18 (diff)
downloadvim-git-2c4278fc738cca3fcd70cffd7ddc865ea9783694.tar.gz
updated for version 7.2-180v7.2.180
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/macros.h b/src/macros.h
index afe3572bb..68ea6bcf1 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -284,7 +284,7 @@
# define mb_cptr2len(p) (enc_utf8 ? utf_ptr2len(p) : (*mb_ptr2len)(p))
# define MB_COPY_CHAR(f, t) if (has_mbyte) mb_copy_char(&f, &t); else *t++ = *f++
-# define MB_CHARLEN(p) (has_mbyte ? mb_charlen(p) : STRLEN(p))
+# define MB_CHARLEN(p) (has_mbyte ? mb_charlen(p) : (int)STRLEN(p))
# define PTR2CHAR(p) (has_mbyte ? mb_ptr2char(p) : (int)*(p))
#else
# define mb_ptr_adv(p) ++p