aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-11-22 09:02:03 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-11-22 09:02:03 -0200
commit4d7cfff6df9cbd5a60bfa41acf4bcc93413b038f (patch)
tree15258acd4cba15907c1fa39a0e6cf584c1ab494e
parentbe822a5f1c0a0cd3f63790ffe761b6a13a69134f (diff)
downloadlua-4d7cfff6df9cbd5a60bfa41acf4bcc93413b038f.tar.gz
lua-4d7cfff6df9cbd5a60bfa41acf4bcc93413b038f.tar.bz2
lua-4d7cfff6df9cbd5a60bfa41acf4bcc93413b038f.zip
comments
-rw-r--r--lobject.c4
-rw-r--r--lparser.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lobject.c b/lobject.c
index 2d8475b3..92c28144 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 2.22 2006/02/10 17:43:52 roberto Exp roberto $ 2** $Id: lobject.c,v 2.23 2006/07/11 15:53:29 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*/
@@ -33,7 +33,7 @@ const TValue luaO_nilobject_ = {{NULL}, LUA_TNIL};
33** eeeee != 0 and (xxx) otherwise. 33** eeeee != 0 and (xxx) otherwise.
34*/ 34*/
35int luaO_int2fb (unsigned int x) { 35int luaO_int2fb (unsigned int x) {
36 int e = 0; /* expoent */ 36 int e = 0; /* exponent */
37 if (x < 8) return x; 37 if (x < 8) return x;
38 while (x >= 0x10) { 38 while (x >= 0x10) {
39 x = (x+1) >> 1; 39 x = (x+1) >> 1;
diff --git a/lparser.c b/lparser.c
index b99e9aaf..12face39 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.48 2006/09/14 18:42:28 roberto Exp roberto $ 2** $Id: lparser.c,v 2.49 2006/10/24 13:31:48 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -820,7 +820,7 @@ static const struct {
820 lu_byte left; /* left priority for each binary operator */ 820 lu_byte left; /* left priority for each binary operator */
821 lu_byte right; /* right priority */ 821 lu_byte right; /* right priority */
822} priority[] = { /* ORDER OPR */ 822} priority[] = { /* ORDER OPR */
823 {6, 6}, {6, 6}, {7, 7}, {7, 7}, {7, 7}, /* `+' `-' `/' `%' */ 823 {6, 6}, {6, 6}, {7, 7}, {7, 7}, {7, 7}, /* `+' `-' `*' `/' `%' */
824 {10, 9}, {5, 4}, /* power and concat (right associative) */ 824 {10, 9}, {5, 4}, /* power and concat (right associative) */
825 {3, 3}, {3, 3}, /* equality and inequality */ 825 {3, 3}, {3, 3}, /* equality and inequality */
826 {3, 3}, {3, 3}, {3, 3}, {3, 3}, /* order */ 826 {3, 3}, {3, 3}, {3, 3}, {3, 3}, /* order */