arpadboda 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_r247311933
 
 

 ##########
 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:
   Not sure I get the point, this does the same strto(u)ll call inside that was 
here before. 
   The only change is the return value, which comes from AssignIfFits. 

----------------------------------------------------------------
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