aboutsummaryrefslogtreecommitdiff
path: root/lbuiltin.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbuiltin.c')
-rw-r--r--lbuiltin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbuiltin.c b/lbuiltin.c
index 36432add..50183fff 100644
--- a/lbuiltin.c
+++ b/lbuiltin.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbuiltin.c,v 1.7 1997/11/07 18:19:13 roberto Exp roberto $ 2** $Id: lbuiltin.c,v 1.8 1997/11/19 17:29:23 roberto Exp roberto $
3** Built-in functions 3** Built-in functions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -152,11 +152,11 @@ static char *to_string (lua_Object obj)
152 case LUA_T_NUMBER: case LUA_T_STRING: 152 case LUA_T_NUMBER: case LUA_T_STRING:
153 return lua_getstring(obj); 153 return lua_getstring(obj);
154 case LUA_T_ARRAY: { 154 case LUA_T_ARRAY: {
155 sprintf(buff, "table: %p", o->value.a); 155 sprintf(buff, "table: %p", (void *)o->value.a);
156 return buff; 156 return buff;
157 } 157 }
158 case LUA_T_FUNCTION: { 158 case LUA_T_FUNCTION: {
159 sprintf(buff, "function: %p", o->value.cl); 159 sprintf(buff, "function: %p", (void *)o->value.cl);
160 return buff; 160 return buff;
161 } 161 }
162 case LUA_T_USERDATA: { 162 case LUA_T_USERDATA: {