lli: Fix warnings. [-Wsign-compare]

llvm-svn: 257430
This commit is contained in:
NAKAMURA Takumi 2016-01-12 01:23:30 +00:00
parent 8dbcb63866
commit 65c4eafaa5
1 changed files with 2 additions and 2 deletions

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