Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-978

Math errors with float -> int implicit fleece conversion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.8.0
    • 2.0.0
    • LiteCore
    • Security Level: Public
    • Jim 22
    • 3

    Description

      To save space, fleece was converting floats with no decimal information (e.g. 5.0) to integers. However, this had the side effect of causing math errors if both sides an an operation in a query (e.g. 5.0 / 15.0) had no decimal information because 5.0 / 15.0 != 5 / 15. Unfortunately this means saving the extra bytes on disk even when they are not needed to save the logical value.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jimb Jim Borden
              jimb Jim Borden
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty