Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1272

FastMath.pow(double, long) enters an infinite loop with Long.MIN_VALUE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0, 3.5
    • 4.0, 3.6
    • None
    • Patch

    Description

      FastMath.pow(double, long) enters an infinite loop with Long.MIN_VALUE. It cannot be negated, so unsigned shift (>>>) is required instead of a signed one (>>).

      Attachments

        1. MATH-1272.patch
          2 kB
          Qualtagh

        Activity

          People

            Unassigned Unassigned
            Qualtagh Qualtagh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: