mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 15:04:33 +00:00
Fix compiler warnings
This commit is contained in:
parent
8349339f32
commit
dd232a3721
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user