lordgamez commented on a change in pull request #1020:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1020#discussion_r591709988



##########
File path: nanofi/src/api/nanofi.cpp
##########
@@ -457,7 +457,7 @@ int get_content(const flow_file_record* ff, uint8_t* 
target, int size) {
     return stream->read(target, size);
   } else {
     file_buffer fb = file_to_buffer(ff->contentLocation);
-    size_t copy_size = size < fb.file_len ? size : 
gsl::narrow<size_t>(fb.file_len);
+    size_t copy_size = static_cast<size_t>(size) < fb.file_len ? size : 
gsl::narrow<size_t>(fb.file_len);

Review comment:
       Updated in 267cda83a77a5a6d05f9df714d0c923814351826




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to