Re-allow alignment of 0 bits

This commit is contained in:
Ben
2017-03-02 08:29:28 +00:00
committed by GitHub
parent 7993d3455d
commit 7e2457c9be

View File

@@ -631,8 +631,8 @@ out_NewAbsSection(char *pzName, ULONG secttype, SLONG org, SLONG bank)
void void
out_NewAlignedSection(char *pzName, ULONG secttype, SLONG alignment, SLONG bank) out_NewAlignedSection(char *pzName, ULONG secttype, SLONG alignment, SLONG bank)
{ {
if (alignment < 1 || alignment > 16) { if (alignment < 0 || alignment > 16) {
yyerror("Alignment must be between 1-16 bits."); yyerror("Alignment must be between 0-16 bits.");
} }
out_SetCurrentSection(out_FindSection(pzName, secttype, -1, bank, 1 << alignment)); out_SetCurrentSection(out_FindSection(pzName, secttype, -1, bank, 1 << alignment));
} }