From 5b7abe3bc368f1ad91799dc03d62727be66cd42d Mon Sep 17 00:00:00 2001 From: Ben RUBSON Date: Thu, 26 Apr 2018 16:39:59 +0200 Subject: [PATCH] Correct a sign-compare warning (#516) thrown by Cygwin 32 bits --- encfs/BlockFileIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encfs/BlockFileIO.cpp b/encfs/BlockFileIO.cpp index c3a5330..f78703d 100644 --- a/encfs/BlockFileIO.cpp +++ b/encfs/BlockFileIO.cpp @@ -186,7 +186,7 @@ ssize_t BlockFileIO::read(const IORequest &req) const { ++blockNum; partialOffset = 0; - if (readSize < _blockSize) { + if ((size_t)readSize < _blockSize) { break; } }