]> git.sur5r.net Git - cc65/commitdiff
Fixed a problem with debug symbol ids. Invalid ids were written to the file
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 31 Jan 2012 20:44:27 +0000 (20:44 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 31 Jan 2012 20:44:27 +0000 (20:44 +0000)
because of a wrong check.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5430 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/dbginfo.c

index 9accd6e5726fcf920c016ac39220ed7c2897c609..aa24b33096393c078682ed678491533c062c3cda 100644 (file)
@@ -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;
             }