mirror of
https://github.com/cc65/cc65.git
synced 2025-01-03 16:33:19 +00:00
Fixed an off-by-one error.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5111 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
3cf41ed2e7
commit
f0eaf6b1b4
@ -3152,7 +3152,7 @@ static int FindLineInfoByLine (Collection* LineInfos, cc65_line Line,
|
||||
|
||||
static void ProcessSymInfo (InputData* D)
|
||||
/* Postprocess symbol infos */
|
||||
{
|
||||
{
|
||||
/* Get pointers to the symbol info collections */
|
||||
Collection* SymInfoById = &D->Info->SymInfoById;
|
||||
Collection* SymInfoByName = &D->Info->SymInfoByName;
|
||||
@ -3626,10 +3626,10 @@ cc65_lineinfo* cc65_lineinfo_byname (cc65_dbginfo Handle, const char* FileName,
|
||||
CollAppend (&LineInfoList, L);
|
||||
|
||||
/* Check if the next one is also a match */
|
||||
if (LineIndex >= CollCount (&F->LineInfoByLine)) {
|
||||
if (++LineIndex >= CollCount (&F->LineInfoByLine)) {
|
||||
break;
|
||||
}
|
||||
L = CollAt (&F->LineInfoByLine, ++LineIndex);
|
||||
L = CollAt (&F->LineInfoByLine, LineIndex);
|
||||
if (L->Line != Line) {
|
||||
Found = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user