You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Tong Li (JIRA)" <ji...@apache.org> on 2015/02/27 01:46:05 UTC

[jira] [Commented] (KAFKA-1988) org.apache.kafka.common.utils.Utils.abs method returns wrong value for negative numbers.

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

Tong Li commented on KAFKA-1988:
--------------------------------

Created reviewboard https://reviews.apache.org/r/31517/diff/
 against branch origin/trunk

> org.apache.kafka.common.utils.Utils.abs method returns wrong value for negative numbers.
> ----------------------------------------------------------------------------------------
>
>                 Key: KAFKA-1988
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1988
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Tong Li
>            Assignee: Tong Li
>         Attachments: KAFKA-1988.patch
>
>
> org.apache.kafka.common.utils.Utils.abs method returns wrong value for negative numbers. The method only returns intended value for positive numbers. All negative numbers except the Integer.Min_Value will be returned an unsigned integer.



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