You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by sz...@apache.org on 2021/05/26 12:46:11 UTC

[nifi-minifi-cpp] 03/17: fix compilation on mac

This is an automated email from the ASF dual-hosted git repository.

szaszm pushed a commit to branch MINIFICPP-1507
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git

commit a4b439cabd02866fd8519417886c02c335f8fe11
Author: Marton Szasz <sz...@gmail.com>
AuthorDate: Tue Mar 16 12:30:22 2021 +0100

    fix compilation on mac
---
 libminifi/include/sitetosite/SiteToSiteClient.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libminifi/include/sitetosite/SiteToSiteClient.h b/libminifi/include/sitetosite/SiteToSiteClient.h
index 7a41e81..be1d327 100644
--- a/libminifi/include/sitetosite/SiteToSiteClient.h
+++ b/libminifi/include/sitetosite/SiteToSiteClient.h
@@ -288,7 +288,7 @@ class WriteCallback : public OutputStreamCallback {
     uint64_t len = _packet->_size;
     uint64_t total = 0;
     while (len > 0) {
-      const auto size = std::min(len, size_t{16384});
+      const auto size = std::min(len, uint64_t{16384});
       const auto ret = _packet->transaction_->getStream().read(buffer, size);
       if (ret != size) {
         logging::LOG_ERROR(_packet->logger_reference_) << "Site2Site Receive Flow Size " << size << " Failed " << ret << ", should have received " << len;