Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-10568

SafeNum should be written in terms of explicitly sized types like int32_t and int64_t

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.3.2
    • Affects Version/s: None
    • Component/s: Internal Code, Portability
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Platforms 10 (02/19/16)

      The current implementation of SafeNum makes unwarranted assumptions about the sizes of the integral types 'int' and 'long long int'. Since SafeNum is explicitly intended to model signed 32-bit and signed 64-bit integers, its interface and implementation should be re-written in terms of the appropriate fixed width integer types: int32_t and int64_t.

            Assignee:
            waley.chen Waley Chen
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: