Mercurial > vim
changeset 3543:9755d151c749 v7.3.532
updated for version 7.3.532
Problem: Compiler warning from Clang.
Solution: Use a different way to point inside a string. (Dominique Pelle)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 01 Jun 2012 13:18:53 +0200 |
parents | 1c6b099ead89 |
children | 98233587fa28 |
files | src/syntax.c src/version.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/syntax.c +++ b/src/syntax.c @@ -9476,7 +9476,7 @@ highlight_list_two(cnt, attr) int cnt; int attr; { - msg_puts_attr((char_u *)("N \bI \b! \b" + cnt / 11), attr); + msg_puts_attr((char_u *)&("N \bI \b! \b"[cnt / 11]), attr); msg_clr_eos(); out_flush(); ui_delay(cnt == 99 ? 40L : (long)cnt * 50L, FALSE);