aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-25 18:36:54 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-25 18:36:54 -0300
commit7e0f880bc5712d2d98a31cf4261396c8ea62b737 (patch)
tree7182fd65dab57ee604084393a766f2c2310cb364 /lbaselib.c
parent118e9cd843d2956d64b86bfdd70f89919153e471 (diff)
downloadlua-7e0f880bc5712d2d98a31cf4261396c8ea62b737.tar.gz
lua-7e0f880bc5712d2d98a31cf4261396c8ea62b737.tar.bz2
lua-7e0f880bc5712d2d98a31cf4261396c8ea62b737.zip
C++ demands cast from void to specific types
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 4650b4b3..1e80c42a 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.101 2002/10/25 20:05:28 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.102 2002/10/25 21:31:28 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -273,7 +273,7 @@ static int luaB_loadstring (lua_State *L) {
273 273
274static int writer (lua_State *L, const void* b, size_t size, void* B) { 274static int writer (lua_State *L, const void* b, size_t size, void* B) {
275 (void)L; 275 (void)L;
276 luaL_addlstring((luaL_Buffer*) B, b, size); 276 luaL_addlstring((luaL_Buffer*) B, (const char *)b, size);
277 return 1; 277 return 1;
278} 278}
279 279