fixed some signed-ness issues.

This commit is contained in:
Christoph Oelckers 2023-10-08 08:11:56 +02:00
parent bfe589fecd
commit 448ca88bfd
2 changed files with 5 additions and 6 deletions

View file

@ -540,7 +540,6 @@ public:
} }
uint8_t header[12]; uint8_t header[12];
int err;
File = file; File = file;
Size = uncompressed_size; Size = uncompressed_size;
@ -553,7 +552,7 @@ public:
return false; return false;
} }
File->Seek(-sizeof(header), FileReader::SeekCur); File->Seek(-(ptrdiff_t)sizeof(header), FileReader::SeekCur);
FillBuffer(); FillBuffer();

View file

@ -324,13 +324,13 @@ public:
int Compare (const FString &other) const { return strcmp (Chars, other.Chars); } int Compare (const FString &other) const { return strcmp (Chars, other.Chars); }
int Compare (const char *other) const { return strcmp (Chars, other); } int Compare (const char *other) const { return strcmp (Chars, other); }
int Compare(const FString &other, int len) const { return strncmp(Chars, other.Chars, len); } int Compare(const FString &other, size_t len) const { return strncmp(Chars, other.Chars, len); }
int Compare(const char *other, int len) const { return strncmp(Chars, other, len); } int Compare(const char *other, size_t len) const { return strncmp(Chars, other, len); }
int CompareNoCase (const FString &other) const { return stricmp (Chars, other.Chars); } int CompareNoCase (const FString &other) const { return stricmp (Chars, other.Chars); }
int CompareNoCase (const char *other) const { return stricmp (Chars, other); } int CompareNoCase (const char *other) const { return stricmp (Chars, other); }
int CompareNoCase(const FString &other, int len) const { return strnicmp(Chars, other.Chars, len); } int CompareNoCase(const FString &other, size_t len) const { return strnicmp(Chars, other.Chars, len); }
int CompareNoCase(const char *other, int len) const { return strnicmp(Chars, other, len); } int CompareNoCase(const char *other, size_t len) const { return strnicmp(Chars, other, len); }
enum EmptyTokenType enum EmptyTokenType
{ {