From: thefox Date: Thu, 4 Jul 2013 18:10:58 +0000 (+0300) Subject: Fixed a logic bug in dbginfo.c module that prevented some valid debug info files... X-Git-Tag: V2.15~254^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c12a8bf37701741cbfc8423bc9e13b4882ba01fa;p=cc65 Fixed a logic bug in dbginfo.c module that prevented some valid debug info files from being parsed. --- 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; }