aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index 7a61a780..28b1caab 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -659,7 +659,7 @@ static const char *funcnamefromcall (lua_State *L, CallInfo *ci,
659** Check whether pointer 'o' points to some value in the stack frame of 659** Check whether pointer 'o' points to some value in the stack frame of
660** the current function and, if so, returns its index. Because 'o' may 660** the current function and, if so, returns its index. Because 'o' may
661** not point to a value in this stack, we cannot compare it with the 661** not point to a value in this stack, we cannot compare it with the
662** region boundaries (undefined behaviour in ISO C). 662** region boundaries (undefined behavior in ISO C).
663*/ 663*/
664static int instack (CallInfo *ci, const TValue *o) { 664static int instack (CallInfo *ci, const TValue *o) {
665 int pos; 665 int pos;
@@ -848,7 +848,7 @@ static int changedline (const Proto *p, int oldpc, int newpc) {
848 if (p->lineinfo == NULL) /* no debug information? */ 848 if (p->lineinfo == NULL) /* no debug information? */
849 return 0; 849 return 0;
850 if (newpc - oldpc < MAXIWTHABS / 2) { /* not too far apart? */ 850 if (newpc - oldpc < MAXIWTHABS / 2) { /* not too far apart? */
851 int delta = 0; /* line diference */ 851 int delta = 0; /* line difference */
852 int pc = oldpc; 852 int pc = oldpc;
853 for (;;) { 853 for (;;) {
854 int lineinfo = p->lineinfo[++pc]; 854 int lineinfo = p->lineinfo[++pc];