Nico Weber wrote:

> I get the following warning when compiling vim:
> 
>      ex_getln.c: In function 'call_user_expand_func':
>      ex_getln.c:4697: warning: format '%d' expects type 'int', but  
> argument 3 has type 'size_t'
> 
> That line is
> 
>       sprintf((char *)num, "%d", STRLEN(xp->xp_pattern));
> 
> Adding an explicit cast makes the warning go away:
> 
>       sprintf((char *)num, "%d", (int)STRLEN(xp->xp_pattern));

Thanks for fixing this.

-- 
Mynd you, m00se bites Kan be pretty nasti ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui