aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-12-26 12:43:45 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-12-26 12:43:45 -0200
commitfb6796ba06e5cfc6040cddec90508a379a3abd50 (patch)
tree54955504fb2cb40df23427988203020f954da40d
parent88ef06f4f3074d54743e178aaf61fa464b2065b4 (diff)
downloadlua-fb6796ba06e5cfc6040cddec90508a379a3abd50.tar.gz
lua-fb6796ba06e5cfc6040cddec90508a379a3abd50.tar.bz2
lua-fb6796ba06e5cfc6040cddec90508a379a3abd50.zip
removed useless initializations
-rw-r--r--lapi.c4
-rw-r--r--lobject.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lapi.c b/lapi.c
index efa9a5a4..c2ef6019 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.242 2014/11/02 19:19:04 roberto Exp roberto $ 2** $Id: lapi.c,v 2.243 2014/11/12 13:28:54 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -676,7 +676,7 @@ LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {
676 676
677LUA_API int lua_getmetatable (lua_State *L, int objindex) { 677LUA_API int lua_getmetatable (lua_State *L, int objindex) {
678 const TValue *obj; 678 const TValue *obj;
679 Table *mt = NULL; 679 Table *mt;
680 int res = 0; 680 int res = 0;
681 lua_lock(L); 681 lua_lock(L);
682 obj = index2addr(L, objindex); 682 obj = index2addr(L, objindex);
diff --git a/lobject.c b/lobject.c
index 8f9f8465..a3cc619f 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 2.99 2014/11/04 19:16:25 roberto Exp roberto $ 2** $Id: lobject.c,v 2.100 2014/11/21 12:15:57 roberto Exp roberto $
3** Some generic functions over Lua objects 3** Some generic functions over Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -189,7 +189,7 @@ static lua_Number lua_strx2number (const char *s, char **endptr) {
189 int sigdig = 0; /* number of significant digits */ 189 int sigdig = 0; /* number of significant digits */
190 int nosigdig = 0; /* number of non-significant digits */ 190 int nosigdig = 0; /* number of non-significant digits */
191 int e = 0; /* exponent correction */ 191 int e = 0; /* exponent correction */
192 int neg = 0; /* 1 if number is negative */ 192 int neg; /* 1 if number is negative */
193 int dot = 0; /* true after seen a dot */ 193 int dot = 0; /* true after seen a dot */
194 *endptr = cast(char *, s); /* nothing is valid yet */ 194 *endptr = cast(char *, s); /* nothing is valid yet */
195 while (lisspace(cast_uchar(*s))) s++; /* skip initial spaces */ 195 while (lisspace(cast_uchar(*s))) s++; /* skip initial spaces */