shithub: rgbds

Download patch

ref: d02294505c965910d5b066b4e8cfac2ca7359671
parent: eb4bbb3e0bee84752f4f5c0bce9e76d76bc36ef9
author: Anthony J. Bentley <[email protected]>
date: Sat Feb 21 22:55:51 EST 2015

Avoid use of magic numbers.

From Antonio Niño Díaz.

--- a/src/link/output.c
+++ b/src/link/output.c
@@ -86,7 +86,7 @@
 
 		fclose(f);
 	}
-	for (i = 256; i < MAXBANKS; i += 1) {
+	for (i = BANK_WRAM0; i < MAXBANKS; i++) {
 		struct sSection *pSect;
 		MapfileInitBank(i);
 		pSect = pSections;