Skip to content

Commit

Permalink
Fix some sign-compare warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiemost committed Nov 30, 2022
1 parent 4ac5582 commit e14c2a9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bme/bme_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ typedef struct

typedef struct
{
unsigned rawcode;
int rawcode;
char *name;
} KEY;

Expand Down
2 changes: 1 addition & 1 deletion src/bme/bme_snd.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void noteOff(unsigned char note) {
}

void snd_midi_process(double timeStamp, const unsigned char *message, size_t messageSize, void *userData) {
int i;
size_t i;

for (i = 0; i < messageSize; i++) {
//printf("size: %u: %02X %u %u\n", messageSize,
Expand Down
2 changes: 1 addition & 1 deletion src/gdisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ char timechar[] = {':', ' '};

int timemin = 0;
int timesec = 0;
int timeframe = 0;
unsigned timeframe = 0;

void initcolorscheme(int dark)
{
Expand Down
2 changes: 1 addition & 1 deletion src/gplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ typedef struct
unsigned char note;
unsigned char lastnote;
unsigned char newnote;
unsigned pattptr;
int pattptr;
unsigned char pattnum;
unsigned char songptr;
unsigned char repeat;
Expand Down

0 comments on commit e14c2a9

Please sign in to comment.