Project

General

Profile

RE: MeasuredEV in CanonSi ยป fix-canon-measured-ev.patch

Axel Waggershauser, 07 Mar 2015 19:27

View differences:

src/canonmn.cpp (working copy)
1698 1698
            // see also printSi0x0017
1699 1699
            std::ostringstream oss;
1700 1700
            oss.copyfmt(os);
1701
            int res = static_cast<int>(100.0 * (value.toLong() / 32.0 + 5.0) + 0.5);
1701
            int res = static_cast<int>(100.0 * (static_cast<short>(value.toLong()) / 32.0 + 5.0) + 0.5);
1702 1702
            os << std::fixed << std::setprecision(2) << res / 100.0;
1703 1703
            os.copyfmt(oss);
1704 1704
        }
    (1-1/1)