mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-09 13:55:22 +00:00
lli: Fix warnings. [-Wsign-compare]
llvm-svn: 257430
This commit is contained in:
parent
7584f0dfac
commit
1f8f7e6bc2
@ -31,7 +31,7 @@ public:
|
||||
std::error_code readBytes(char *Dst, unsigned Size) override {
|
||||
assert(Dst && "Attempt to read into null.");
|
||||
ssize_t ReadResult = ::read(InFD, Dst, Size);
|
||||
if (ReadResult != Size)
|
||||
if (ReadResult != (ssize_t)Size)
|
||||
return std::error_code(errno, std::generic_category());
|
||||
return std::error_code();
|
||||
}
|
||||
@ -39,7 +39,7 @@ public:
|
||||
std::error_code appendBytes(const char *Src, unsigned Size) override {
|
||||
assert(Src && "Attempt to append from null.");
|
||||
ssize_t WriteResult = ::write(OutFD, Src, Size);
|
||||
if (WriteResult != Size)
|
||||
if (WriteResult != (ssize_t)Size)
|
||||
std::error_code(errno, std::generic_category());
|
||||
return std::error_code();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user