Mercurial > vim
comparison src/misc1.c @ 3608:683de9306096 v7.3.564
updated for version 7.3.564
Problem: Warning for pointer conversion.
Solution: Add type cast.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 20 Jun 2012 17:56:09 +0200 |
parents | 74adc9f7e15b |
children | 7e3fedfc3d08 |
comparison
equal
deleted
inserted
replaced
3607:8fa14ee1ea65 | 3608:683de9306096 |
---|---|
4535 int usedlen = 0; | 4535 int usedlen = 0; |
4536 int flen; | 4536 int flen; |
4537 char_u *fbuf = NULL; | 4537 char_u *fbuf = NULL; |
4538 | 4538 |
4539 flen = (int)STRLEN(homedir_env); | 4539 flen = (int)STRLEN(homedir_env); |
4540 (void)modify_fname(":p", &usedlen, &homedir_env, &fbuf, &flen); | 4540 (void)modify_fname((char_u *)":p", &usedlen, |
4541 &homedir_env, &fbuf, &flen); | |
4541 flen = (int)STRLEN(homedir_env); | 4542 flen = (int)STRLEN(homedir_env); |
4542 if (flen > 0 && vim_ispathsep(homedir_env[flen - 1])) | 4543 if (flen > 0 && vim_ispathsep(homedir_env[flen - 1])) |
4543 /* Remove the trailing / that is added to a directory. */ | 4544 /* Remove the trailing / that is added to a directory. */ |
4544 homedir_env[flen - 1] = NUL; | 4545 homedir_env[flen - 1] = NUL; |
4545 } | 4546 } |