1
0
mirror of https://github.com/raphnet/4nes4snes synced 2024-12-21 22:48:51 -05:00

fixed warning and illogical signed use

This commit is contained in:
Raphaël Assénat 2012-04-14 14:46:05 +00:00
parent 875c7a7059
commit 30ded39aad
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@
/*********** prototypes *************/ /*********** prototypes *************/
static void fournsnesInit(void); static void fournsnesInit(void);
static void fournsnesUpdate(void); static void fournsnesUpdate(void);
static char fournsnesChanged(char report_id); static char fournsnesChanged(unsigned char report_id);
static char fournsnesBuildReport(unsigned char *reportBuffer, char report_id); static char fournsnesBuildReport(unsigned char *reportBuffer, char report_id);
@ -480,7 +480,7 @@ static void fournsnesUpdate(void)
} }
static char fournsnesChanged(char report_id) static char fournsnesChanged(unsigned char report_id)
{ {
report_id--; // first report is 1 report_id--; // first report is 1

View File

@ -14,7 +14,7 @@ typedef struct {
void (*init)(void); void (*init)(void);
void (*update)(void); void (*update)(void);
char (*changed)(char id); char (*changed)(unsigned char id);
/** /**
* \param id Controller id (starting at 1 to match report IDs) * \param id Controller id (starting at 1 to match report IDs)
* \return The number of bytes written to buf. * \return The number of bytes written to buf.