comparison src/syntax.c @ 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 3db4282d5e6b
children 002f2c5de317
comparison
equal deleted inserted replaced
3542:1c6b099ead89 3543:9755d151c749
9474 static void 9474 static void
9475 highlight_list_two(cnt, attr) 9475 highlight_list_two(cnt, attr)
9476 int cnt; 9476 int cnt;
9477 int attr; 9477 int attr;
9478 { 9478 {
9479 msg_puts_attr((char_u *)("N \bI \b! \b" + cnt / 11), attr); 9479 msg_puts_attr((char_u *)&("N \bI \b! \b"[cnt / 11]), attr);
9480 msg_clr_eos(); 9480 msg_clr_eos();
9481 out_flush(); 9481 out_flush();
9482 ui_delay(cnt == 99 ? 40L : (long)cnt * 50L, FALSE); 9482 ui_delay(cnt == 99 ? 40L : (long)cnt * 50L, FALSE);
9483 } 9483 }
9484 9484