From: uz Date: Tue, 31 Jan 2012 20:44:27 +0000 (+0000) Subject: Fixed a problem with debug symbol ids. Invalid ids were written to the file X-Git-Tag: V2.13.3~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b6276e75f3c4ec5e9799cfbac6d5e928fc5c1c17;p=cc65 Fixed a problem with debug symbol ids. Invalid ids were written to the file because of a wrong check. git-svn-id: svn://svn.cc65.org/cc65/trunk@5430 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/dbginfo.c b/src/ca65/dbginfo.c index 9accd6e57..aa24b3309 100644 --- a/src/ca65/dbginfo.c +++ b/src/ca65/dbginfo.c @@ -6,7 +6,7 @@ /* */ /* */ /* */ -/* (C) 2000-2011, Ullrich von Bassewitz */ +/* (C) 2000-2012, Ullrich von Bassewitz */ /* Roemerstrasse 52 */ /* D-70794 Filderstadt */ /* EMail: uz@cc65.org */ @@ -503,7 +503,7 @@ void WriteHLLDbgSyms (void) /* Remember if the symbol has debug info attached * ### This should go into DbgInfoCheck */ - if (S->Sym && S->Sym->DebugSymId) { + if (S->Sym && S->Sym->DebugSymId != ~0U) { S->Flags |= HLL_DATA_SYM; }