mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r15220) -Fix (r15216): signedness warning
This commit is contained in:
parent
c8cbdc17d3
commit
67a2dd12e8
@ -222,7 +222,7 @@ static bool VerifyOldNameChecksum(char *title, uint len)
|
|||||||
|
|
||||||
static inline bool CheckOldSavegameType(FILE *f, char *temp, const char *last, uint len)
|
static inline bool CheckOldSavegameType(FILE *f, char *temp, const char *last, uint len)
|
||||||
{
|
{
|
||||||
assert(last - temp + 1 >= len);
|
assert(last - temp + 1 >= (int)len);
|
||||||
|
|
||||||
fseek(f, 0, SEEK_SET);
|
fseek(f, 0, SEEK_SET);
|
||||||
if (fread(temp, 1, len, f) != len) {
|
if (fread(temp, 1, len, f) != len) {
|
||||||
|
Loading…
Reference in New Issue
Block a user