diff options
Diffstat (limited to 'lbuiltin.c')
-rw-r--r-- | lbuiltin.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: { |