aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-04-18 09:44:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-04-18 09:44:10 -0300
commite15f1f2bb7a38a3c94519294d031e48508d65006 (patch)
tree1528b4a73da045e4d1617c1a276e66c056ba7686 /ldebug.c
parentb5c65705ca78560cd2735778737122ea5f858bd0 (diff)
downloadlua-e15f1f2bb7a38a3c94519294d031e48508d65006.tar.gz
lua-e15f1f2bb7a38a3c94519294d031e48508d65006.tar.bz2
lua-e15f1f2bb7a38a3c94519294d031e48508d65006.zip
Detailsv5.4.5
Typos in comments and details in the manual.
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];