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

Fix serialization of i64 larger than 2^53 for browserify

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Node.js - Library
    • Labels:
      None
    • Environment:

      browserify 13.0.0

      Description

      Apparently, storing negative value to Buffer works for node but not for browserify.
      Forcing positive value by (& 0xff) before storing fixed the problem.

        Attachments

          Activity

            People

            • Assignee:
              nsuke Nobuaki Sukegawa
              Reporter:
              nsuke Nobuaki Sukegawa
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: