This is an automated email from the ASF dual-hosted git repository.
phrocker pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
The following commit(s) were added to refs/heads/master by this push:
new 52d780a MINIFICPP-699 - fix unsigned/signed comparison
52d780a is described below
commit 52d780aa17ba65603643108c51b5af2ba4c5ae1d
Author: Dustin Rodrigues <[email protected]>
AuthorDate: Thu Jan 3 10:06:56 2019 -0500
MINIFICPP-699 - fix unsigned/signed comparison
This closes #464.
Signed-off-by: Marc Parisi <[email protected]>
---
libminifi/include/processors/HashContent.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libminifi/include/processors/HashContent.h
b/libminifi/include/processors/HashContent.h
index 4fdc68c..bcfdd34 100644
--- a/libminifi/include/processors/HashContent.h
+++ b/libminifi/include/processors/HashContent.h
@@ -46,7 +46,7 @@ namespace {
std::string digestToString(const unsigned char * const digest, size_t size) {
std::stringstream ss;
- for(int i = 0; i < size; i++)
+ for(size_t i = 0; i < size; i++)
{
ss << std::uppercase << std::hex << std::setw(2) << std::setfill('0') <<
(int)digest[i];
}