mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34: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)
|
else if (Whence == SEEK_CUR)
|
||||||
{
|
{
|
||||||
NewOffset = node->Offset + Offset;
|
NewOffset = node->Offset + Offset;
|
||||||
if (NewOffset > node->Length || NewOffset < 0)
|
if ((size_t)NewOffset > node->Length || NewOffset < 0)
|
||||||
return -1;
|
return -1;
|
||||||
node->Offset = NewOffset;
|
node->Offset = NewOffset;
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ namespace VirtualFileSystem
|
|||||||
else if (Whence == SEEK_CUR)
|
else if (Whence == SEEK_CUR)
|
||||||
{
|
{
|
||||||
NewOffset = node->Offset + Offset;
|
NewOffset = node->Offset + Offset;
|
||||||
if (NewOffset > node->Length || NewOffset < 0)
|
if ((size_t)NewOffset > node->Length || NewOffset < 0)
|
||||||
return -1;
|
return -1;
|
||||||
node->Offset = NewOffset;
|
node->Offset = NewOffset;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user