giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Avery Ching (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GIRAPH-424) Fix hashCode modulo computation
Date Thu, 29 Nov 2012 21:15:00 GMT

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

Avery Ching commented on GIRAPH-424:
------------------------------------

Ah, right, two's complement.  =)  

+1!
                
> Fix hashCode modulo computation
> -------------------------------
>
>                 Key: GIRAPH-424
>                 URL: https://issues.apache.org/jira/browse/GIRAPH-424
>             Project: Giraph
>          Issue Type: Bug
>            Reporter: Maja Kabiljo
>            Assignee: Maja Kabiljo
>         Attachments: GIRAPH-424.patch
>
>
> hashCode() can return Integer.MIN_VALUE, and on several places we do Math.abs(hashCode),
expecting to get a positive value.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message