mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-23 03:22:08 +00:00
Fix some signed/unsigned comparison warnings
Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
@@ -107,7 +107,8 @@ readUTF8Char(char *dest, char *src)
|
||||
int
|
||||
charmap_Add(char *input, UBYTE output)
|
||||
{
|
||||
int i, input_length;
|
||||
int i;
|
||||
size_t input_length;
|
||||
char temp1i[CHARMAPLENGTH + 1], temp2i[CHARMAPLENGTH + 1], temp1o = 0,
|
||||
temp2o = 0;
|
||||
|
||||
|
||||
@@ -435,7 +435,7 @@ yylex_GetLongestFixed()
|
||||
size_t
|
||||
CopyMacroArg(char *dest, size_t maxLength, char c)
|
||||
{
|
||||
int i;
|
||||
size_t i;
|
||||
char *s;
|
||||
int argNum;
|
||||
|
||||
|
||||
@@ -378,8 +378,9 @@ sym_FindMacroArg(SLONG i)
|
||||
if (i == -1)
|
||||
i = MAXMACROARGS + 1;
|
||||
|
||||
assert(i-1 >= 0 &&
|
||||
i-1 < sizeof currentmacroargs / sizeof *currentmacroargs);
|
||||
assert(i-1 >= 0);
|
||||
assert((size_t)(i-1) < sizeof(currentmacroargs)/sizeof(*currentmacroargs));
|
||||
|
||||
return (currentmacroargs[i - 1]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user