diff options
author | Ancyker <[email protected]> | 2023-09-04 16:29:00 -0400 |
---|---|---|
committer | Ancyker <[email protected]> | 2023-09-04 16:29:00 -0400 |
commit | 749d60de3ff20434ec5a4d24406631c751726510 (patch) | |
tree | b4dbd77594e9819de783bdb152848055652ecd9e | |
parent | 03bef214ece268c4a0fbbd135ee3f4aa8d8e180f (diff) | |
download | cartreader-749d60de3ff20434ec5a4d24406631c751726510.tar.gz cartreader-749d60de3ff20434ec5a4d24406631c751726510.zip |
Fixed warnings in GB.ino
-rw-r--r-- | Cart_Reader/GB.ino | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Cart_Reader/GB.ino b/Cart_Reader/GB.ino index abf4293..a3a2f65 100644 --- a/Cart_Reader/GB.ino +++ b/Cart_Reader/GB.ino @@ -2604,7 +2604,6 @@ void readPelican_GB() { word finalAddress = 0x3FFF; word startAddress= 0x2000; - word startBank = 0; word bankAddress = 0xA000; //Enable bank addressing in the CPLD @@ -2679,7 +2678,7 @@ void readPelican_GB() { uint32_t totalProgressBar = (uint32_t)(romBanks)*8192; draw_progressbar(0, totalProgressBar); - for (int workBank = 0; workBank < romBanks; workBank++) { // Loop over banks + for (size_t workBank = 0; workBank < romBanks; workBank++) { // Loop over banks startAddress = 0x2000; @@ -3103,7 +3102,6 @@ void readMegaMem_GB() { finalAddress = 0x7FFF; startAddress= 0x4000; - word startBank = 0; word bankAddress = 0x2000; romBanks = 32; @@ -3112,7 +3110,7 @@ void readMegaMem_GB() { totalProgressBar = (uint32_t)(romBanks)*8192; draw_progressbar(0, totalProgressBar); - for (int workBank = 0; workBank < romBanks; workBank++) { // Loop over banks + for (size_t workBank = 0; workBank < romBanks; workBank++) { // Loop over banks startAddress = 0x4000; @@ -3388,7 +3386,6 @@ void readGameshark_GB() { word finalAddress = 0x5FFF; word startAddress= 0x4000; - word startBank = 0; word bankAddress = 0x7FE1; romBanks = 16; @@ -3431,7 +3428,7 @@ void readGameshark_GB() { uint32_t totalProgressBar = (uint32_t)(romBanks)*8192; draw_progressbar(0, totalProgressBar); - for (int workBank = 0; workBank < romBanks; workBank++) { // Loop over banks + for (size_t workBank = 0; workBank < romBanks; workBank++) { // Loop over banks startAddress = 0x4000; |