commit 951897c09319ae5474a4b86bb7d615136577caa0
parent a34677e4f409b291308d8fe37dee135fe42fe2e1
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Tue, 16 Nov 1999 10:50:26 -0200
last warnings in Visual C
Diffstat:
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/lbuiltin.c b/lbuiltin.c
@@ -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
** See Copyright Notice in lua.h
*/
@@ -369,16 +369,16 @@ static void luaB_tostring (void) {
lua_pushobject(obj);
return;
case LUA_T_ARRAY:
- sprintf(buff, "table: %p", (void *)o->value.a);
+ sprintf(buff, "table: %p", o->value.a);
break;
case LUA_T_CLOSURE:
- sprintf(buff, "function: %p", (void *)o->value.cl);
+ sprintf(buff, "function: %p", o->value.cl);
break;
case LUA_T_PROTO:
- sprintf(buff, "function: %p", (void *)o->value.tf);
+ sprintf(buff, "function: %p", o->value.tf);
break;
case LUA_T_CPROTO:
- sprintf(buff, "function: %p", (void *)o->value.f);
+ sprintf(buff, "function: %p", o->value.f);
break;
case LUA_T_USERDATA:
sprintf(buff, "userdata: %p", o->value.ts->u.d.value);
diff --git a/lua.c b/lua.c
@@ -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
** See Copyright Notice in lua.h
*/
@@ -18,7 +18,7 @@
#ifdef _POSIX_SOURCE
#include <unistd.h>
#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