- Fixed support for "job-hold-until" with the Restart-Job operation (Issue #250)
- Fixed the default color/grayscale presets for IPP Everywhere PPDs (Issue #262)
- Fixed support for the 'offline-report' state for all USB backends (Issue #264)
+- Fixed an integer overflow in the PWG media size name formatting code
+ (Issue #668)
- Documentation fixes (Issue #92, Issue #163, Issue #177, Issue #184)
- Localization updates (Issue #123, Issue #129, Issue #134, Issue #146,
Issue #164)
* the nearest thousandth.
*/
- thousandths = (val * 1000 + 1270) / 2540;
- integer = thousandths / 1000;
- fraction = thousandths % 1000;
+ integer = val / 2540;
+ fraction = ((val % 2540) * 1000 + 1270) / 2540;
+ if (fraction >= 1000)
+ {
+ integer ++;
+ fraction -= 1000;
+ }
/*
* Format as a pair of integers (avoids locale stuff), avoiding trailing