lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 7e0f880bc5712d2d98a31cf4261396c8ea62b737
parent 118e9cd843d2956d64b86bfdd70f89919153e471
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri, 25 Oct 2002 18:36:32 -0300

C++ demands cast from void to specific types

Diffstat:
Mlbaselib.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lbaselib.c b/lbaselib.c @@ -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; }