aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-11-16 10:50:48 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-11-16 10:50:48 -0200
commit951897c09319ae5474a4b86bb7d615136577caa0 (patch)
treeda2637ae06ad4e8d13a012c40be00a8d38312137
parenta34677e4f409b291308d8fe37dee135fe42fe2e1 (diff)
downloadlua-951897c09319ae5474a4b86bb7d615136577caa0.tar.gz
lua-951897c09319ae5474a4b86bb7d615136577caa0.tar.bz2
lua-951897c09319ae5474a4b86bb7d615136577caa0.zip
last warnings in Visual C
-rw-r--r--lbuiltin.c10
-rw-r--r--lua.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/lbuiltin.c b/lbuiltin.c
index 98918b54..2ebdd66f 100644
--- a/lbuiltin.c
+++ b/lbuiltin.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbuiltin.c,v 1.71 1999/11/10 15:41:11 roberto Exp roberto $ 2** $Id: lbuiltin.c,v 1.72 1999/11/11 17:02:40 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*/
@@ -369,16 +369,16 @@ static void luaB_tostring (void) {
369 lua_pushobject(obj); 369 lua_pushobject(obj);
370 return; 370 return;
371 case LUA_T_ARRAY: 371 case LUA_T_ARRAY:
372 sprintf(buff, "table: %p", (void *)o->value.a); 372 sprintf(buff, "table: %p", o->value.a);
373 break; 373 break;
374 case LUA_T_CLOSURE: 374 case LUA_T_CLOSURE:
375 sprintf(buff, "function: %p", (void *)o->value.cl); 375 sprintf(buff, "function: %p", o->value.cl);
376 break; 376 break;
377 case LUA_T_PROTO: 377 case LUA_T_PROTO:
378 sprintf(buff, "function: %p", (void *)o->value.tf); 378 sprintf(buff, "function: %p", o->value.tf);
379 break; 379 break;
380 case LUA_T_CPROTO: 380 case LUA_T_CPROTO:
381 sprintf(buff, "function: %p", (void *)o->value.f); 381 sprintf(buff, "function: %p", o->value.f);
382 break; 382 break;
383 case LUA_T_USERDATA: 383 case LUA_T_USERDATA:
384 sprintf(buff, "userdata: %p", o->value.ts->u.d.value); 384 sprintf(buff, "userdata: %p", o->value.ts->u.d.value);
diff --git a/lua.c b/lua.c
index 040aa72f..ac7d05e2 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.24 1999/11/09 17:59:35 roberto Exp roberto $ 2** $Id: lua.c,v 1.25 1999/11/12 13:54:44 roberto Exp roberto $
3** Lua stand-alone interpreter 3** Lua stand-alone interpreter
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -18,7 +18,7 @@
18#ifdef _POSIX_SOURCE 18#ifdef _POSIX_SOURCE
19#include <unistd.h> 19#include <unistd.h>
20#else 20#else
21#define isatty(x) (x==0) /* assume stdin is a tty */ 21static int isatty (int x) { return x==0; } /* assume stdin is a tty */
22#endif 22#endif
23 23
24 24