Skip to content

Commit 39c9001

Browse files
committed
updated for version 7.3.1305
Problem: Warnings from 64 bit compiler. Solution: Add type casts.
1 parent d37321b commit 39c9001

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/misc2.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4680,8 +4680,9 @@ vim_findfile_init(path, filename, stopdirs, level, free_visited, find_what,
46804680
STRCPY(ff_expand_buffer, search_ctx->ffsc_start_dir);
46814681
add_pathsep(ff_expand_buffer);
46824682
{
4683-
int eb_len = STRLEN(ff_expand_buffer);
4684-
char_u *buf = alloc(eb_len + STRLEN(search_ctx->ffsc_fix_path) + 1);
4683+
int eb_len = (int)STRLEN(ff_expand_buffer);
4684+
char_u *buf = alloc(eb_len
4685+
+ (int)STRLEN(search_ctx->ffsc_fix_path) + 1);
46854686

46864687
STRCPY(buf, ff_expand_buffer);
46874688
STRCPY(buf + eb_len, search_ctx->ffsc_fix_path);
@@ -4700,18 +4701,18 @@ vim_findfile_init(path, filename, stopdirs, level, free_visited, find_what,
47004701

47014702
if (p > search_ctx->ffsc_fix_path)
47024703
{
4703-
len = p - search_ctx->ffsc_fix_path - 1;
4704+
len = (int)(p - search_ctx->ffsc_fix_path) - 1;
47044705
STRNCAT(ff_expand_buffer, search_ctx->ffsc_fix_path, len);
47054706
add_pathsep(ff_expand_buffer);
47064707
}
47074708
else
4708-
len = STRLEN(search_ctx->ffsc_fix_path);
4709+
len = (int)STRLEN(search_ctx->ffsc_fix_path);
47094710

47104711
if (search_ctx->ffsc_wc_path != NULL)
47114712
{
47124713
wc_path = vim_strsave(search_ctx->ffsc_wc_path);
4713-
temp = alloc(STRLEN(search_ctx->ffsc_wc_path)
4714-
+ (STRLEN(search_ctx->ffsc_fix_path) - len));
4714+
temp = alloc((int)(STRLEN(search_ctx->ffsc_wc_path)
4715+
+ (STRLEN(search_ctx->ffsc_fix_path)) - len));
47154716
}
47164717

47174718
if (temp == NULL || wc_path == NULL)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ static char *(features[]) =
728728

729729
static int included_patches[] =
730730
{ /* Add new patch number below this line */
731+
/**/
732+
1305,
731733
/**/
732734
1304,
733735
/**/

0 commit comments

Comments
 (0)