修复编译出现的警告

This commit is contained in:
anod 2023-01-16 20:11:36 +08:00
parent 280383e220
commit b157277c25
3 changed files with 6 additions and 6 deletions

View File

@ -9,7 +9,7 @@
#include "arm11/console.h"
#include "fs.h"
extern Result fReadSize( FHandle file, void *buff, unsigned size, unsigned *readout );
extern Result fReadSize( FHandle file, void *buff, unsigned size, uint32_t *readout );
typedef struct
{

View File

@ -4,7 +4,7 @@
#include <stdlib.h>
#include <string.h>
extern Result fReadSize( FHandle file, void *buff, unsigned size, unsigned *readout );
extern Result fReadSize( FHandle file, void *buff, unsigned size, uint32_t *readout );
typedef struct
{
@ -38,7 +38,7 @@ typedef struct
} CheatSet;
static CheatLib gblcht = {0, 0, NULL, 0, 0};
static CheatSet gblset = {0, 0, {0,0,0}, NULL};
static CheatSet gblset = {0, 0, {0,0,0}, NULL, NULL};
#define ACL_MAGIC_CODE 0x4c4341
#define ACL_GBA_CODELEN 4

View File

@ -47,10 +47,10 @@ static void setBacklight(void)
else GFX_setBrightness(backlight, backlight);
}
Result fReadSize( FHandle file, void *buff, unsigned size, unsigned *readout )
Result fReadSize( FHandle file, void *buff, unsigned size, uint32_t *readout )
{
unsigned fill = 0;
unsigned readed;
uint32_t fill = 0;
uint32_t readed;
do{
Result res;
if( RES_OK != (res=fRead(file, buff+fill, size-fill < 256 ? size-fill : 256, &readed)) ){