]> git.sur5r.net Git - cc65/commitdiff
Fixed an error in calculation of the fill bytes necessary for alignment.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 11 Jan 2012 18:30:25 +0000 (18:30 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 11 Jan 2012 18:30:25 +0000 (18:30 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5396 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/ca65/segment.c

index 1e3196fe70b6259876c416580a499d25bac46943..c6a08b56d1e5f52f72f0c9c3aec27fcbf2d833f7 100644 (file)
@@ -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);
 
     }