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