last warnings in Visual C

This commit is contained in:
Roberto Ierusalimschy 1999-11-16 10:50:48 -02:00
parent a34677e4f4
commit 951897c093
2 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
/* /*
** $Id: lbuiltin.c,v 1.71 1999/11/10 15:41:11 roberto Exp roberto $ ** $Id: lbuiltin.c,v 1.72 1999/11/11 17:02:40 roberto Exp roberto $
** Built-in functions ** Built-in functions
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -369,16 +369,16 @@ static void luaB_tostring (void) {
lua_pushobject(obj); lua_pushobject(obj);
return; return;
case LUA_T_ARRAY: case LUA_T_ARRAY:
sprintf(buff, "table: %p", (void *)o->value.a); sprintf(buff, "table: %p", o->value.a);
break; break;
case LUA_T_CLOSURE: case LUA_T_CLOSURE:
sprintf(buff, "function: %p", (void *)o->value.cl); sprintf(buff, "function: %p", o->value.cl);
break; break;
case LUA_T_PROTO: case LUA_T_PROTO:
sprintf(buff, "function: %p", (void *)o->value.tf); sprintf(buff, "function: %p", o->value.tf);
break; break;
case LUA_T_CPROTO: case LUA_T_CPROTO:
sprintf(buff, "function: %p", (void *)o->value.f); sprintf(buff, "function: %p", o->value.f);
break; break;
case LUA_T_USERDATA: case LUA_T_USERDATA:
sprintf(buff, "userdata: %p", o->value.ts->u.d.value); sprintf(buff, "userdata: %p", o->value.ts->u.d.value);

4
lua.c
View File

@ -1,5 +1,5 @@
/* /*
** $Id: lua.c,v 1.24 1999/11/09 17:59:35 roberto Exp roberto $ ** $Id: lua.c,v 1.25 1999/11/12 13:54:44 roberto Exp roberto $
** Lua stand-alone interpreter ** Lua stand-alone interpreter
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@ -18,7 +18,7 @@
#ifdef _POSIX_SOURCE #ifdef _POSIX_SOURCE
#include <unistd.h> #include <unistd.h>
#else #else
#define isatty(x) (x==0) /* assume stdin is a tty */ static int isatty (int x) { return x==0; } /* assume stdin is a tty */
#endif #endif