msvc: Fix a pointer arithmetic compilation error
commitcd793354c5963b92bb1b41fbc9d7d96f48cb902e
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Fri, 8 Oct 2010 17:12:42 +0000 (8 18:12 +0100)
committerAndreas Ericsson <ae@op5.se>
Sat, 9 Oct 2010 11:21:03 +0000 (9 13:21 +0200)
treec60562f24f5374e70c4649c89751959df3969f76
parenta417641914a02c8ce137f527ab964f9ce322f4ad
msvc: Fix a pointer arithmetic compilation error

In particular, msvc issues the following error:

    src/tree.c(101) : error C2036: 'void *' : unknown size

This is caused by attempting to perform arithmetic with a void pointer.

Although using pointer arithmetic on void pointers is supported by gcc
as a language extension, it is not legal in standard C. In order to
suppress the error, we cast the pointer to (char *) so that the compiler
can determine the correct size of the data type.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
src/tree.c