Skip to content

Commit

Permalink
fixed some signed-ness issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 8, 2023
1 parent bfe589f commit 448ca88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/common/filesystem/source/files_decompress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,6 @@ class DecompressorXZ : public DecompressorBase
}

uint8_t header[12];
int err;
File = file;

Size = uncompressed_size;
Expand All @@ -553,7 +552,7 @@ class DecompressorXZ : public DecompressorBase
return false;
}

File->Seek(-sizeof(header), FileReader::SeekCur);
File->Seek(-(ptrdiff_t)sizeof(header), FileReader::SeekCur);

FillBuffer();

Expand Down
8 changes: 4 additions & 4 deletions src/common/utility/zstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,13 @@ class FString

int Compare (const FString &other) const { return strcmp (Chars, other.Chars); }
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 char *other, int len) const { return strncmp(Chars, other, len); }
int Compare(const FString &other, size_t len) const { return strncmp(Chars, other.Chars, 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 char *other) const { return stricmp (Chars, other); }
int CompareNoCase(const FString &other, int len) const { return strnicmp(Chars, other.Chars, len); }
int CompareNoCase(const char *other, int len) const { return strnicmp(Chars, other, len); }
int CompareNoCase(const FString &other, size_t len) const { return strnicmp(Chars, other.Chars, len); }
int CompareNoCase(const char *other, size_t len) const { return strnicmp(Chars, other, len); }

enum EmptyTokenType
{
Expand Down

0 comments on commit 448ca88

Please sign in to comment.