diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-04-18 09:44:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-04-18 09:44:10 -0300 |
commit | e15f1f2bb7a38a3c94519294d031e48508d65006 (patch) | |
tree | 1528b4a73da045e4d1617c1a276e66c056ba7686 /ldebug.c | |
parent | b5c65705ca78560cd2735778737122ea5f858bd0 (diff) | |
download | lua-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.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]; |