mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Alignment mask was incorrectly checked for 1 instead of 0
This caused an `ALIGN[1]` to be ignored.
This commit is contained in:
@@ -248,7 +248,7 @@ static void doSanityChecks(struct Section *section, void *ptr)
|
|||||||
* Check if alignment is reasonable, this is important to avoid UB
|
* Check if alignment is reasonable, this is important to avoid UB
|
||||||
* An alignment of zero is equivalent to no alignment, basically
|
* An alignment of zero is equivalent to no alignment, basically
|
||||||
*/
|
*/
|
||||||
if (section->isAlignFixed && section->alignMask == 1)
|
if (section->isAlignFixed && section->alignMask == 0)
|
||||||
section->isAlignFixed = false;
|
section->isAlignFixed = false;
|
||||||
|
|
||||||
/* Too large an alignment may not be satisfiable */
|
/* Too large an alignment may not be satisfiable */
|
||||||
|
|||||||
Reference in New Issue
Block a user