From c12a8bf37701741cbfc8423bc9e13b4882ba01fa Mon Sep 17 00:00:00 2001 From: thefox Date: Thu, 4 Jul 2013 21:10:58 +0300 Subject: [PATCH] Fixed a logic bug in dbginfo.c module that prevented some valid debug info files from being parsed. --- src/dbginfo/dbginfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dbginfo/dbginfo.c b/src/dbginfo/dbginfo.c index 16bc9d9de..05951f6c6 100644 --- a/src/dbginfo/dbginfo.c +++ b/src/dbginfo/dbginfo.c @@ -2933,7 +2933,7 @@ static void ParseCSym (InputData* D) } /* Symbol only valid if storage class not auto */ - if (((InfoBits & ibSymId) != 0) != (SC != CC65_CSYM_AUTO)) { + if (((InfoBits & ibSymId) != 0) && (SC == CC65_CSYM_AUTO)) { ParseError (D, CC65_ERROR, "Only non auto symbols can have a symbol attached"); goto ErrorExit; } -- 2.39.5