You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
fix warnings in lzcomp and md5
This commit is contained in:
@@ -113,7 +113,7 @@ void write_command_to_file (FILE * fp, struct command command, const unsigned ch
|
|||||||
*(pos ++) = command.value;
|
*(pos ++) = command.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (fwrite(buf, 1, pos - buf, fp) != (pos - buf)) error_exit(1, "could not write command to compressed output");
|
if ((int)fwrite(buf, 1, pos - buf, fp) != (pos - buf)) error_exit(1, "could not write command to compressed output");
|
||||||
if (command.command) return;
|
if (command.command) return;
|
||||||
command.count ++;
|
command.count ++;
|
||||||
if (fwrite(input_stream + command.value, 1, command.count, fp) != command.count) error_exit(1, "could not write data to compressed output");
|
if (fwrite(input_stream + command.value, 1, command.count, fp) != command.count) error_exit(1, "could not write data to compressed output");
|
||||||
|
@@ -32,7 +32,7 @@ static const uint32_t K[64] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define rotate_left_32(value, by) \
|
#define rotate_left_32(value, by) \
|
||||||
((((value) << (by)) & 0xffffffff) | ((value) >> 32 - (by)))
|
((((value) << (by)) & 0xffffffff) | ((value) >> (32 - (by))))
|
||||||
|
|
||||||
void md5_wikipedia(uint8_t *data, int length, uint8_t *result) {
|
void md5_wikipedia(uint8_t *data, int length, uint8_t *result) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user