fgerlits commented on a change in pull request #964:
URL: https://github.com/apache/nifi-minifi-cpp/pull/964#discussion_r555266004
##########
File path: libminifi/include/provenance/Provenance.h
##########
@@ -360,7 +361,7 @@ class ProvenanceEventRecord : public
core::SerializableComponent {
bool DeSerialize(const std::shared_ptr<core::SerializableComponent> &repo);
uint64_t getEventTime(const uint8_t *buffer, const size_t bufferSize) {
- int size = bufferSize > 72 ? 72 : bufferSize;
+ int size = gsl::narrow<int>(bufferSize > 72 ? 72 : bufferSize);
Review comment:
true -- I've replaced it with `min`
----------------------------------------------------------------
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:
[email protected]