Fix compiler warnings

This commit is contained in:
Alex 2023-05-05 19:39:46 +03:00
parent 8349339f32
commit dd232a3721
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ namespace Memory
else if (Whence == SEEK_CUR)
{
NewOffset = node->Offset + Offset;
if (NewOffset > node->Length || NewOffset < 0)
if ((size_t)NewOffset > node->Length || NewOffset < 0)
return -1;
node->Offset = NewOffset;
}

View File

@ -50,7 +50,7 @@ namespace VirtualFileSystem
else if (Whence == SEEK_CUR)
{
NewOffset = node->Offset + Offset;
if (NewOffset > node->Length || NewOffset < 0)
if ((size_t)NewOffset > node->Length || NewOffset < 0)
return -1;
node->Offset = NewOffset;
}