This is a char

This commit is contained in:
Aurora 2016-10-08 14:27:36 +02:00
parent 50b24bf6c2
commit e5f40cec5a
2 changed files with 2 additions and 2 deletions

View File

@ -469,7 +469,7 @@ void kernel9Loader(Arm9Bin *arm9Section)
//Calculate the size of the ARM9 binary
u32 arm9BinSize = 0;
//http://stackoverflow.com/questions/12791077/atoi-implementation-in-c
for(u8 *tmp = arm9Section->size; *tmp != 0; tmp++)
for(char *tmp = arm9Section->size; *tmp != 0; tmp++)
arm9BinSize = (arm9BinSize << 3) + (arm9BinSize << 1) + *tmp - '0';
//Decrypt ARM9 binary

View File

@ -164,7 +164,7 @@ typedef struct Arm9Bin {
uint8_t keyX[0x10];
uint8_t keyY[0x10];
uint8_t ctr[0x10];
uint8_t size[8];
char size[8];
uint8_t reserved[8];
uint8_t ctlBlock[0x10];
char magic[4];