mfbt/decimal/zero-serialization.patch

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

     1 diff --git a/mfbt/decimal/Decimal.cpp b/mfbt/decimal/Decimal.cpp
     2 --- a/mfbt/decimal/Decimal.cpp
     3 +++ b/mfbt/decimal/Decimal.cpp
     4 @@ -278,17 +278,17 @@ bool Decimal::EncodedData::operator==(co
     5  }
     7  Decimal::Decimal(int32_t i32)
     8      : m_data(i32 < 0 ? Negative : Positive, 0, i32 < 0 ? static_cast<uint64_t>(-static_cast<int64_t>(i32)) : static_cast<uint64_t>(i32))
     9  {
    10  }
    12  Decimal::Decimal(Sign sign, int exponent, uint64_t coefficient)
    13 -    : m_data(sign, exponent, coefficient)
    14 +    : m_data(sign, coefficient ? exponent : 0, coefficient)
    15  {
    16  }
    18  Decimal::Decimal(const EncodedData& data)
    19      : m_data(data)
    20  {
    21  }

mercurial