[ 
https://issues.apache.org/jira/browse/MESOS-4070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15202285#comment-15202285
 ] 

Cong Wang commented on MESOS-4070:
----------------------------------

Hi,

Do you have a use case for this? Currently in Mesos code base, we don't use 
negative hex numbers, therefore we didn't fix this on purpose. It is never too 
late to add it when you have a use case.


> numify() handles negative numbers inconsistently.
> -------------------------------------------------
>
>                 Key: MESOS-4070
>                 URL: https://issues.apache.org/jira/browse/MESOS-4070
>             Project: Mesos
>          Issue Type: Bug
>          Components: stout
>            Reporter: Jie Yu
>            Assignee: Yong Tang
>              Labels: tech-debt
>
> As pointed by [~neilc] in this review:
> https://reviews.apache.org/r/40988
> {noformat}
> Try<int> num2 = numify<int>("-10");
> EXPECT_SOME_EQ(-10, num2);
> // TODO(neilc): This is inconsistent with the handling of non-hex numbers.
> EXPECT_ERROR(numify<int>("-0x10"));
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to