On May 30, 2013 1:01 PM, "Bram Moolenaar" <[email protected]> wrote: > > > Manuel Ortega wrote: > > > I got a compiler warning on OSX 10.8.3 that I've never seen before. This > > is while building 7.3.1072. The last vim I built was 7.3.1053 and this > > warning didn't exist then. > > > > gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -g -O2 > > -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/memfile.o memfile.c > > In file included from if_python.c:758: > > if_py_both.h: In function ‘RangeRepr’: > > if_py_both.h:3810: warning: format ‘%d’ expects type ‘int’, but argument 3 > > has type ‘Py_ssize_t’ > > if_py_both.h:3810: warning: format ‘%d’ expects type ‘int’, but argument 4 > > has type ‘Py_ssize_t’ > > > > Vim built fine and seems to work after this. > > Looks like it needs a type cast. I'll make a patch.
ssize_t may be larger than an int. The %z format specifier (%Id for MSVC) should be used instead of potentially casting down. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
