1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

lli: Fix warnings. [-Wsign-compare]

llvm-svn: 257430
This commit is contained in:
NAKAMURA Takumi 2016-01-12 01:23:30 +00:00
parent 7584f0dfac
commit 1f8f7e6bc2

View File

@ -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();
}