Closed eliasdaler closed 9 months ago
When I compile Lua as C++ (and therefore need to compile lfs as C++ as well), GCC says this:
luafilesystem/src/lfs.c:1068:28: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive] 1068 | char *target2 = realloc(target, size); | ~~~~~~~^~~~~~~~~~~~~~ | | | void*
To fix this, explicit cast to char* is needed. (lfs compiles as C++ and works well after this patch)
char*
P.S. here is why I compile Lua as C++
oops, sorry, I was reviewing PRs top-to-bottom and I just merged another one which implements the same change! Thank you for the contribution, regardless!
When I compile Lua as C++ (and therefore need to compile lfs as C++ as well), GCC says this:
To fix this, explicit cast to
char*
is needed. (lfs compiles as C++ and works well after this patch)P.S. here is why I compile Lua as C++