Fixed some typos in the "large alignment" support.

This commit is contained in:
Greg King 2020-05-15 21:09:02 -04:00
parent 3adeb0f907
commit f8be35b41e
3 changed files with 4 additions and 4 deletions

View file

@ -226,7 +226,7 @@ Here is a description of all the command line options:
<tag><tt>--large-alignment</tt></tag>
Disable warnings about a large combined alignment. See the discussion of the
<tt><ref id=".ALIGN" name=".ALIGN"></tt> directive for futher information.
<tt><ref id=".ALIGN" name=".ALIGN"></tt> directive for further information.
<label id="option--list-bytes">

View file

@ -303,7 +303,7 @@ Here is a description of all of the command-line options:
<tag><tt>--large-alignment</tt></tag>
Disable warnings about a large combined alignment. See the discussion of the
<tt/.ALIGN/ directive in the ca65 Users Guide for futher information.
<tt/.ALIGN/ directive in the ca65 Users Guide for further information.
<tag><tt>--lib file</tt></tag>

View file

@ -306,7 +306,7 @@ void SegAlign (unsigned long Alignment, int FillVal)
ActiveSeg->Align = CombinedAlignment;
/* Output a warning for larger alignments if not suppressed */
if (CombinedAlignment > LARGE_ALIGNMENT && !LargeAlignment) {
if (CombinedAlignment >= LARGE_ALIGNMENT && !LargeAlignment) {
Warning (0, "Combined alignment is suspiciously large (%lu)",
CombinedAlignment);
}