diff options
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | */ |
664 | static int instack (CallInfo *ci, const TValue *o) { | 664 | static 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]; |