[llvm] r267512 - [lli] Fix a sign-compare warning.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 25 18:45:26 PDT 2016
Author: lhames
Date: Mon Apr 25 20:45:25 2016
New Revision: 267512
URL: http://llvm.org/viewvc/llvm-project?rev=267512&view=rev
Log:
[lli] Fix a sign-compare warning.
Modified:
llvm/trunk/tools/lli/RemoteJITUtils.h
Modified: llvm/trunk/tools/lli/RemoteJITUtils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lli/RemoteJITUtils.h?rev=267512&r1=267511&r2=267512&view=diff
==============================================================================
--- llvm/trunk/tools/lli/RemoteJITUtils.h (original)
+++ llvm/trunk/tools/lli/RemoteJITUtils.h Mon Apr 25 20:45:25 2016
@@ -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;
More information about the llvm-commits
mailing list