From: uz Date: Sun, 6 Feb 2011 14:36:31 +0000 (+0000) Subject: Fixed a bug reported by thefox. X-Git-Tag: V2.13.3~495 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2056097a911c24753317ee1efb6888e2b176d217;p=cc65 Fixed a bug reported by thefox. git-svn-id: svn://svn.cc65.org/cc65/trunk@4965 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/dbginfo/dbginfo.c b/src/dbginfo/dbginfo.c index 1d8d1ca0f..384f9f31a 100644 --- a/src/dbginfo/dbginfo.c +++ b/src/dbginfo/dbginfo.c @@ -1141,7 +1141,7 @@ static void CreateLineInfoList (LineInfoList* L, Collection* LineInfos) Start = LI->Start; End = LI->End; for (J = StartIndex, Addr = LI->Start; Addr <= LI->End; ++J, ++Addr) { - assert (List[J].Addr = Addr); + assert (List[J].Addr == Addr); if (List[J].Count == 1 && List[J].Data == 0) { List[J].Data = LI; } else { @@ -1172,7 +1172,7 @@ static void CreateLineInfoList (LineInfoList* L, Collection* LineInfos) End = LI->End; } for (J = StartIndex, Addr = LI->Start; Addr <= LI->End; ++J, ++Addr) { - assert (List[J].Addr = Addr); + assert (List[J].Addr == Addr); if (List[J].Count == 1 && List[J].Data == 0) { List[J].Data = LI; } else {