Skip to content

Bitshifting logic may need modifying #113

Description

@scuniff

/**
* Calculate the hashCode for the data, The hashcode is generated by
* bitshifting z by ZTBITSPLIT bits and adding t.
*
* @return See above.
*/
public int hashCode()
{
return z<<ZTBITSPLIT+t;
}

The comments at line 113-114 say the hashcode is generated by bitshifting z by ZTBITSPLIT bits and adding t.

To do the bit shifting first, I believe parenthesis are needed:

    return (z<<ZTBITSPLIT) + t;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions