Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3795

Generated hashValue method in Swift will overflow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.3
    • 0.10.0
    • Swift - Compiler
    • None
    • Patch Available

    Description

      The generated hashValue code for Swift uses the + and * arithmetic operators, for which an overflow is a fatal error.

      The intention is probably to wrap around, so the overflow operators should be used instead.

      Attachments

        1. overflow.patch
          1 kB
          Håkon Hitland

        Activity

          People

            hakon Håkon Hitland
            hakon Håkon Hitland
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: