diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-17 22:14:47 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-17 22:14:47 +0000 |
commit | a93fa7ee7856b54d3778e613c7b7e4b76aaeb2af (patch) | |
tree | 4797f43c4e1694903d93da1b61ba972955cb6aad /src/buffer.c | |
parent | b21e5843e53d3582df5f521f57e7e52e83d51d10 (diff) |
updated for version 7.0e01v7.0e01
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c index 64ed9711d0..7d625f2e59 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -3171,7 +3171,7 @@ maketitle() i_name = gettail(curbuf->b_ffname); *i_str = NUL; /* Truncate name at 100 bytes. */ - len = STRLEN(i_name); + len = (int)STRLEN(i_name); if (len > 100) { len -= 100; @@ -3425,7 +3425,7 @@ build_stl_str_hl(wp, out, outlen, fmt, use_sandbox, fillchar, maxwidth, hltab, t } else #endif - n = (p - t) - item[groupitem[groupdepth]].maxwid + 1; + n = (long)(p - t) - item[groupitem[groupdepth]].maxwid + 1; *t = '<'; mch_memmove(t + 1, t + n, p - (t + n)); @@ -3461,7 +3461,7 @@ build_stl_str_hl(wp, out, outlen, fmt, use_sandbox, fillchar, maxwidth, hltab, t mch_memmove(t + n - l, t, p - t); l = n - l; if (p + l >= out + outlen) - l = (out + outlen) - p - 1; + l = (long)((out + outlen) - p - 1); p += l; for (n = groupitem[groupdepth] + 1; n < curitem; n++) item[n].start += l; @@ -3792,7 +3792,7 @@ build_stl_str_hl(wp, out, outlen, fmt, use_sandbox, fillchar, maxwidth, hltab, t { item[curitem].type = Highlight; item[curitem].start = p; - item[curitem].minwid = -syn_namen2id(t, s - t); + item[curitem].minwid = -syn_namen2id(t, (int)(s - t)); curitem++; } ++s; |