Skip to content

Commit 007b8c7

Browse files
committed
Details
Identation + comments
1 parent fd0e1f5 commit 007b8c7

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

lcode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,8 +1837,8 @@ static int finaltarget (Instruction *code, int i) {
18371837
Instruction pc = code[i];
18381838
if (GET_OPCODE(pc) != OP_JMP)
18391839
break;
1840-
else
1841-
i += GETARG_sJ(pc) + 1;
1840+
else
1841+
i += GETARG_sJ(pc) + 1;
18421842
}
18431843
return i;
18441844
}

lopcodes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
6868
,opmode(0, 0, 0, 0, 1, iABC) /* OP_SHL */
6969
,opmode(0, 0, 0, 0, 1, iABC) /* OP_SHR */
7070
,opmode(1, 0, 0, 0, 0, iABC) /* OP_MMBIN */
71-
,opmode(1, 0, 0, 0, 0, iABC) /* OP_MMBINI*/
72-
,opmode(1, 0, 0, 0, 0, iABC) /* OP_MMBINK*/
71+
,opmode(1, 0, 0, 0, 0, iABC) /* OP_MMBINI */
72+
,opmode(1, 0, 0, 0, 0, iABC) /* OP_MMBINK */
7373
,opmode(0, 0, 0, 0, 1, iABC) /* OP_UNM */
7474
,opmode(0, 0, 0, 0, 1, iABC) /* OP_BNOT */
7575
,opmode(0, 0, 0, 0, 1, iABC) /* OP_NOT */

lutf8lib.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -192,22 +192,22 @@ static int byteoffset (lua_State *L) {
192192
if (iscontp(s + posi))
193193
return luaL_error(L, "initial position is a continuation byte");
194194
if (n < 0) {
195-
while (n < 0 && posi > 0) { /* move back */
196-
do { /* find beginning of previous character */
197-
posi--;
198-
} while (posi > 0 && iscontp(s + posi));
199-
n++;
200-
}
201-
}
202-
else {
203-
n--; /* do not move for 1st character */
204-
while (n > 0 && posi < (lua_Integer)len) {
205-
do { /* find beginning of next character */
206-
posi++;
207-
} while (iscontp(s + posi)); /* (cannot pass final '\0') */
208-
n--;
209-
}
210-
}
195+
while (n < 0 && posi > 0) { /* move back */
196+
do { /* find beginning of previous character */
197+
posi--;
198+
} while (posi > 0 && iscontp(s + posi));
199+
n++;
200+
}
201+
}
202+
else {
203+
n--; /* do not move for 1st character */
204+
while (n > 0 && posi < (lua_Integer)len) {
205+
do { /* find beginning of next character */
206+
posi++;
207+
} while (iscontp(s + posi)); /* (cannot pass final '\0') */
208+
n--;
209+
}
210+
}
211211
}
212212
if (n != 0) { /* did not find given character? */
213213
luaL_pushfail(L);

0 commit comments

Comments
 (0)