tux wrote:
> Bram Moolenaar schrob am 17.12.2010 16:27:
>>
>> Patch 7.3.083
>
> ... can't compile:
> Fatal error C1070 (VS2010) in fileio.c in line 10350.
It's probably because the code makes pointer arithmetic
with a void * pointer (which is specific to gcc). Compiling
with gcc -pedantic option gives a warning:
fileio.c:10339: warning: pointer of type ‘void *’ used in arithmetic
The line number (10339) is different than your line number (13350)
but it's close. Adding a cast should fix it:
$ hg diff fileio.c
diff -r 033e7b49356c src/fileio.c
--- a/src/fileio.c Fri Dec 17 16:27:16 2010 +0100
+++ b/src/fileio.c Fri Dec 17 16:43:51 2010 +0100
@@ -10336,7 +10336,7 @@
* by a signal. */
while (ret < (long)bufsize)
{
- wlen = vim_write(fd, buf + ret, bufsize - ret);
+ wlen = vim_write(fd, (char *)buf + ret, bufsize - ret);
if (wlen < 0)
{
if (errno != EINTR)
-- Dominique
--
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