mirror of
https://github.com/lua/lua.git
synced 2025-01-28 06:03:00 +08:00
C++ demands cast from void to specific types
This commit is contained in:
parent
118e9cd843
commit
7e0f880bc5
@ -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
|
** Basic library
|
||||||
** See Copyright Notice in lua.h
|
** 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) {
|
static int writer (lua_State *L, const void* b, size_t size, void* B) {
|
||||||
(void)L;
|
(void)L;
|
||||||
luaL_addlstring((luaL_Buffer*) B, b, size);
|
luaL_addlstring((luaL_Buffer*) B, (const char *)b, size);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user