aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-10-19 11:33:22 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-10-19 11:33:22 -0200
commit910836fb53cb80e93de666526714bc51f2c63510 (patch)
tree954e893d1ed30b8bcb1fc89b063e7b56472dd899 /liolib.c
parent8e7451512f01a89b4230be65cf086f7c1d41d2e2 (diff)
downloadlua-910836fb53cb80e93de666526714bc51f2c63510.tar.gz
lua-910836fb53cb80e93de666526714bc51f2c63510.tar.bz2
lua-910836fb53cb80e93de666526714bc51f2c63510.zip
warnings from Visual C++
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/liolib.c b/liolib.c
index 62246d8b..fcf270a1 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.46 1999/10/07 19:18:36 roberto Exp roberto $ 2** $Id: liolib.c,v 1.47 1999/10/11 16:06:01 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -500,8 +500,7 @@ static void setloc (void) {
500 500
501 501
502static void io_exit (void) { 502static void io_exit (void) {
503 lua_Object o = lua_getparam(1); 503 exit(luaL_opt_int(1, EXIT_FAILURE));
504 exit(lua_isnumber(o) ? (int)lua_getnumber(o) : 1);
505} 504}
506 505
507/* }====================================================== */ 506/* }====================================================== */