mirror of
https://github.com/raphnet/4nes4snes
synced 2024-12-21 14:38:50 -05:00
fixed warning and illogical signed use
This commit is contained in:
parent
875c7a7059
commit
30ded39aad
@ -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
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user