summaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-07-15 09:50:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-07-15 09:50:29 -0300
commit32a12e2f3f18aeade5e2cd77eda67a261815246e (patch)
treefc01c8eb3566c967952bb2a85f1a4f7fcceb58d2 /lcode.c
parent559bb554c944ed166e363e522e48a71e60e1922d (diff)
downloadlua-32a12e2f3f18aeade5e2cd77eda67a261815246e.tar.gz
lua-32a12e2f3f18aeade5e2cd77eda67a261815246e.tar.bz2
lua-32a12e2f3f18aeade5e2cd77eda67a261815246e.zip
detail (cleaned whitespaces at end of lines)
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lcode.c b/lcode.c
index 1067acbd..9240ebdb 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 2.55 2011/05/31 18:24:36 roberto Exp roberto $ 2** $Id: lcode.c,v 2.56 2011/05/31 18:27:56 roberto Exp roberto $
3** Code generator for Lua 3** Code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -44,8 +44,8 @@ void luaK_nil (FuncState *fs, int from, int n) {
44 int pl = pfrom + GETARG_B(*previous); 44 int pl = pfrom + GETARG_B(*previous);
45 if ((pfrom <= from && from <= pl + 1) || 45 if ((pfrom <= from && from <= pl + 1) ||
46 (from <= pfrom && pfrom <= l + 1)) { /* can connect both? */ 46 (from <= pfrom && pfrom <= l + 1)) { /* can connect both? */
47 if (pfrom < from) from = pfrom; /* from = min(from, pfrom) */ 47 if (pfrom < from) from = pfrom; /* from = min(from, pfrom) */
48 if (pl > l) l = pl; /* l = max(l, pl) */ 48 if (pl > l) l = pl; /* l = max(l, pl) */
49 SETARG_A(*previous, from); 49 SETARG_A(*previous, from);
50 SETARG_B(*previous, l - from); 50 SETARG_B(*previous, l - from);
51 return; 51 return;