From: uz Date: Wed, 11 Jan 2012 18:30:25 +0000 (+0000) Subject: Fixed an error in calculation of the fill bytes necessary for alignment. X-Git-Tag: V2.13.3~69 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8ddcbc5f012467e2ed7d199c709ca594ac8fe76b;p=cc65 Fixed an error in calculation of the fill bytes necessary for alignment. git-svn-id: svn://svn.cc65.org/cc65/trunk@5396 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ca65/segment.c b/src/ca65/segment.c index 1e3196fe7..c6a08b56d 100644 --- a/src/ca65/segment.c +++ b/src/ca65/segment.c @@ -312,7 +312,7 @@ void SegAlign (unsigned long Alignment, int FillVal) } /* Calculate the number of fill bytes */ - Count = AlignCount (ActiveSeg->PC, Alignment) - ActiveSeg->PC; + Count = AlignCount (ActiveSeg->PC, Alignment); }