summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2024-07-19 05:02:06 (GMT)
committerculler <culler>2024-07-19 05:02:06 (GMT)
commita7042bc073cde4769058cf3d511ef07ef14493fd (patch)
tree12190365d6eba5f8dc95245fc902c8fb71dd1fb1
parent405cd1740e12c6b84187670afbaf7f835310c288 (diff)
downloadtk-a7042bc073cde4769058cf3d511ef07ef14493fd.zip
tk-a7042bc073cde4769058cf3d511ef07ef14493fd.tar.gz
tk-a7042bc073cde4769058cf3d511ef07ef14493fd.tar.bz2
Fix [13f4eabe]: 0.35278 != 25.4 / 72.0 in double precision arithmetic.
-rw-r--r--generic/tkObj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkObj.c b/generic/tkObj.c
index 4d3e045..c82dd06 100644
--- a/generic/tkObj.c
+++ b/generic/tkObj.c
@@ -198,7 +198,7 @@ GetPixelsFromObjEx(
double d;
PixelRep *pixelPtr;
static const double bias[] = {
- 1.0, 10.0, 25.4, 0.35278 /*25.4 / 72.0*/
+ 1.0, 10.0, 25.4, 25.4 / 72.0
};
if (objPtr->typePtr != &pixelObjType) {