phrocker commented on a change in pull request #472: MINIFICPP-710 - Fix errors 
in Property StringToInt conversion
URL: https://github.com/apache/nifi-minifi-cpp/pull/472#discussion_r246971275
 
 

 ##########
 File path: libminifi/include/core/TypedValues.h
 ##########
 @@ -163,7 +204,11 @@ class DataSizeValue : public TransformableValue, public 
state::response::UInt64V
 
     const char *cvalue = input.c_str();
     char *pEnd;
-    auto ival = std::strtoll(cvalue, &pEnd, 0);
+
+    T ival = 0;
+    if(!StringToNum(cvalue, &pEnd, ival)) {
 
 Review comment:
   This is only applicable if we reach the null terminator and it is not a byte 
string

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to