1 --- inkscape-1.2_2022-05-15_dc2aedaf03/src/svg/svg-length.cpp.old 2022-05-17 12:42:24.481453485 +0000
2 +++ inkscape-1.2_2022-05-15_dc2aedaf03/src/svg/svg-length.cpp 2022-05-17 12:46:40.242900440 +0000
4 /* Determine the actual number of fractional digits */
5 fprec = MAX(static_cast<int>(fprec), static_cast<int>(tprec) - idigits);
7 - val += 0.5 / pow(10.0, fprec);
8 + val += 0.5 / pow(10.0, static_cast<int>(fprec));
9 /* Extract integral and fractional parts */
10 double dival = floor(val);
11 double fval = val - dival;
13 if (idigits > (int)tprec) {
14 - buf.append(std::to_string((unsigned int)floor(dival/pow(10.0, idigits-tprec) + .5)));
15 + buf.append(std::to_string((unsigned int)floor(dival/pow(10.0, static_cast<double>(idigits-tprec)) + .5)));
16 for(unsigned int j=0; j<(unsigned int)idigits-tprec; j++) {