|
|
3ef2ca |
To: vim_dev@googlegroups.com
|
|
|
3ef2ca |
Subject: Patch 7.4.404
|
|
|
3ef2ca |
Fcc: outbox
|
|
|
3ef2ca |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
3ef2ca |
Mime-Version: 1.0
|
|
|
3ef2ca |
Content-Type: text/plain; charset=UTF-8
|
|
|
3ef2ca |
Content-Transfer-Encoding: 8bit
|
|
|
3ef2ca |
------------
|
|
|
3ef2ca |
|
|
|
3ef2ca |
Patch 7.4.404
|
|
|
3ef2ca |
Problem: Windows 64 bit compiler warnings.
|
|
|
3ef2ca |
Solution: Add type casts. (Mike Williams)
|
|
|
3ef2ca |
Files: src/crypt.c, src/undo.c
|
|
|
3ef2ca |
|
|
|
3ef2ca |
|
|
|
3ef2ca |
*** ../vim-7.4.403/src/crypt.c 2014-08-10 13:34:59.052785459 +0200
|
|
|
3ef2ca |
--- src/crypt.c 2014-08-13 22:02:15.756889031 +0200
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 397,409 ****
|
|
|
3ef2ca |
return method->encode_buffer_fn(state, from, len, newptr);
|
|
|
3ef2ca |
if (len == 0)
|
|
|
3ef2ca |
/* Not buffering, just return EOF. */
|
|
|
3ef2ca |
! return len;
|
|
|
3ef2ca |
|
|
|
3ef2ca |
! *newptr = alloc(len);
|
|
|
3ef2ca |
if (*newptr == NULL)
|
|
|
3ef2ca |
return -1;
|
|
|
3ef2ca |
method->encode_fn(state, from, len, *newptr);
|
|
|
3ef2ca |
! return len;
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
|
|
|
3ef2ca |
/*
|
|
|
3ef2ca |
--- 397,409 ----
|
|
|
3ef2ca |
return method->encode_buffer_fn(state, from, len, newptr);
|
|
|
3ef2ca |
if (len == 0)
|
|
|
3ef2ca |
/* Not buffering, just return EOF. */
|
|
|
3ef2ca |
! return (long)len;
|
|
|
3ef2ca |
|
|
|
3ef2ca |
! *newptr = alloc((long)len);
|
|
|
3ef2ca |
if (*newptr == NULL)
|
|
|
3ef2ca |
return -1;
|
|
|
3ef2ca |
method->encode_fn(state, from, len, *newptr);
|
|
|
3ef2ca |
! return (long)len;
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
|
|
|
3ef2ca |
/*
|
|
|
3ef2ca |
*** ../vim-7.4.403/src/undo.c 2014-08-12 20:14:28.791371197 +0200
|
|
|
3ef2ca |
--- src/undo.c 2014-08-13 22:02:15.760889031 +0200
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 992,998 ****
|
|
|
3ef2ca |
int bufi = 0;
|
|
|
3ef2ca |
|
|
|
3ef2ca |
for (i = len - 1; i >= 0; --i)
|
|
|
3ef2ca |
! buf[bufi++] = nr >> (i * 8);
|
|
|
3ef2ca |
return undo_write(bi, buf, (size_t)len);
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
|
|
|
3ef2ca |
--- 992,998 ----
|
|
|
3ef2ca |
int bufi = 0;
|
|
|
3ef2ca |
|
|
|
3ef2ca |
for (i = len - 1; i >= 0; --i)
|
|
|
3ef2ca |
! buf[bufi++] = (char_u)(nr >> (i * 8));
|
|
|
3ef2ca |
return undo_write(bi, buf, (size_t)len);
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 1093,1099 ****
|
|
|
3ef2ca |
#ifdef FEAT_CRYPT
|
|
|
3ef2ca |
if (bi->bi_buffer != NULL)
|
|
|
3ef2ca |
{
|
|
|
3ef2ca |
! int size_todo = size;
|
|
|
3ef2ca |
char_u *p = buffer;
|
|
|
3ef2ca |
|
|
|
3ef2ca |
while (size_todo > 0)
|
|
|
3ef2ca |
--- 1093,1099 ----
|
|
|
3ef2ca |
#ifdef FEAT_CRYPT
|
|
|
3ef2ca |
if (bi->bi_buffer != NULL)
|
|
|
3ef2ca |
{
|
|
|
3ef2ca |
! int size_todo = (int)size;
|
|
|
3ef2ca |
char_u *p = buffer;
|
|
|
3ef2ca |
|
|
|
3ef2ca |
while (size_todo > 0)
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 1119,1125 ****
|
|
|
3ef2ca |
n = bi->bi_avail - bi->bi_used;
|
|
|
3ef2ca |
mch_memmove(p, bi->bi_buffer + bi->bi_used, n);
|
|
|
3ef2ca |
bi->bi_used += n;
|
|
|
3ef2ca |
! size_todo -= n;
|
|
|
3ef2ca |
p += n;
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
return OK;
|
|
|
3ef2ca |
--- 1119,1125 ----
|
|
|
3ef2ca |
n = bi->bi_avail - bi->bi_used;
|
|
|
3ef2ca |
mch_memmove(p, bi->bi_buffer + bi->bi_used, n);
|
|
|
3ef2ca |
bi->bi_used += n;
|
|
|
3ef2ca |
! size_todo -= (int)n;
|
|
|
3ef2ca |
p += n;
|
|
|
3ef2ca |
}
|
|
|
3ef2ca |
return OK;
|
|
|
3ef2ca |
*** ../vim-7.4.403/src/version.c 2014-08-13 21:58:24.824885492 +0200
|
|
|
3ef2ca |
--- src/version.c 2014-08-13 22:02:35.812889338 +0200
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 743,744 ****
|
|
|
3ef2ca |
--- 743,746 ----
|
|
|
3ef2ca |
{ /* Add new patch number below this line */
|
|
|
3ef2ca |
+ /**/
|
|
|
3ef2ca |
+ 404,
|
|
|
3ef2ca |
/**/
|
|
|
3ef2ca |
|
|
|
3ef2ca |
--
|
|
|
3ef2ca |
How To Keep A Healthy Level Of Insanity:
|
|
|
3ef2ca |
10. Ask people what sex they are. Laugh hysterically after they answer.
|
|
|
3ef2ca |
|
|
|
3ef2ca |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
3ef2ca |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
3ef2ca |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
3ef2ca |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|