diff options
author | Lang Hames <lhames@gmail.com> | 2016-04-26 01:45:25 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2016-04-26 01:45:25 +0000 |
commit | e246c4390ecbf30deb5176cfca82350e16a65d8a (patch) | |
tree | db6ffd0c7988e3a3df67556c694e11c3d3fca0ab | |
parent | f456290fca06b368c2b6ab07ef29af2193c403e8 (diff) | |
download | bcm5719-llvm-e246c4390ecbf30deb5176cfca82350e16a65d8a.tar.gz bcm5719-llvm-e246c4390ecbf30deb5176cfca82350e16a65d8a.zip |
[lli] Fix a sign-compare warning.
llvm-svn: 267512
-rw-r--r-- | llvm/tools/lli/RemoteJITUtils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/lli/RemoteJITUtils.h b/llvm/tools/lli/RemoteJITUtils.h index ea6a04e2176..15068d2faf6 100644 --- a/llvm/tools/lli/RemoteJITUtils.h +++ b/llvm/tools/lli/RemoteJITUtils.h @@ -32,7 +32,7 @@ public: llvm::Error readBytes(char *Dst, unsigned Size) override { assert(Dst && "Attempt to read into null."); ssize_t Completed = 0; - while (Completed < Size) { + while (Completed < static_cast<ssize_t>(Size)) { ssize_t Read = ::read(InFD, Dst + Completed, Size - Completed); if (Read <= 0) { auto ErrNo = errno; @@ -50,7 +50,7 @@ public: llvm::Error appendBytes(const char *Src, unsigned Size) override { assert(Src && "Attempt to append from null."); ssize_t Completed = 0; - while (Completed < Size) { + while (Completed < static_cast<ssize_t>(Size)) { ssize_t Written = ::write(OutFD, Src + Completed, Size - Completed); if (Written < 0) { auto ErrNo = errno; |