Instructions from rephail, comments in italic.
"invalid conversion from 'void*' to 'char*' (line 132 in *string_make in z-virt.c)
mem_alloc is defined in the same z-virt.c as
If I add a (char *) it compiles (hopefully that's correct).
Same on line 148 same file.
birth.c (and I guess other files) have a lot of these as well.
I think they were reported as warnings by VC++ rather than errors (Dev-C++).
[EDIT]The birth.c 'errors' are trickier and I can't change the file to get Dev-C++ to accept it.
"invalid conversion from 'void*' to 'char*' (line 132 in *string_make in z-virt.c)
Code:
124: char *res; /*... skip some lines ...*/ 130: /* Allocate space for the string (including terminator) */ 131: siz = strlen(str) + 1; 132: res = mem_alloc(siz);
Code:
void *mem_alloc(size_t len)
Code:
res = (char *)mem_alloc(siz);
birth.c (and I guess other files) have a lot of these as well.
I think they were reported as warnings by VC++ rather than errors (Dev-C++).
[EDIT]The birth.c 'errors' are trickier and I can't change the file to get Dev-C++ to accept it.
Comment