Changeset 414


Ignore:
Timestamp:
07/13/15 02:28:59 (9 years ago)
Author:
Maciej Komosinski
Message:

Don't print warnings on int (operator) float; the result gets promoted to float

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/util/extvalue.cpp

    r375 r414  
    448448                {
    449449                case TDouble:
    450                         logPrintf("ExtValue", "add", LOG_WARN, "Adding %s to %s", src.typeAndValue().c_str(), typeAndValue().c_str());
    451450                        setDouble(double(getInt()) + src.getDouble());
    452451                        return;
     
    502501                        return;
    503502                case TDouble:
    504                         logPrintf("ExtValue", "subtract", LOG_WARN, "Subtracting %s from %s", src.typeAndValue().c_str(), typeAndValue().c_str());
    505503                        setDouble(double(getInt()) - src.getDouble());
    506504                        return;
     
    535533                        return;
    536534                case TDouble:
    537                         logPrintf("ExtValue", "multiply", LOG_WARN, "Multiplying %s by %s", typeAndValue().c_str(), src.typeAndValue().c_str());
    538535                        setDouble(double(getInt())*src.getDouble());
    539536                        return;
     
    651648                        return;
    652649                case TDouble:
    653                         logPrintf("ExtValue", "divide", LOG_WARN, "Dividing %s by %s", typeAndValue().c_str(), src.typeAndValue().c_str());
    654650                        divDouble(src.ddata());
    655651                        return;
Note: See TracChangeset for help on using the changeset viewer.