mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
C++ demands cast from void to specific types
This commit is contained in:
parent
118e9cd843
commit
7e0f880bc5
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lbaselib.c,v 1.101 2002/10/25 20:05:28 roberto Exp roberto $
|
||||
** $Id: lbaselib.c,v 1.102 2002/10/25 21:31:28 roberto Exp roberto $
|
||||
** Basic library
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -273,7 +273,7 @@ static int luaB_loadstring (lua_State *L) {
|
|||
|
||||
static int writer (lua_State *L, const void* b, size_t size, void* B) {
|
||||
(void)L;
|
||||
luaL_addlstring((luaL_Buffer*) B, b, size);
|
||||
luaL_addlstring((luaL_Buffer*) B, (const char *)b, size);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue