summaryrefslogtreecommitdiffstats
path: root/generic/tkScale.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-04-02 18:18:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-04-02 18:18:31 (GMT)
commit6d61d799f483c98a1e0aeb624fa001a7fce24af0 (patch)
treea67b9ccfa323ad24c93a2fc2f7011cfa8ee0ba63 /generic/tkScale.c
parent8d2dbe96066152901e507e44cf7dec9b00f2bee3 (diff)
downloadtk-6d61d799f483c98a1e0aeb624fa001a7fce24af0.zip
tk-6d61d799f483c98a1e0aeb624fa001a7fce24af0.tar.gz
tk-6d61d799f483c98a1e0aeb624fa001a7fce24af0.tar.bz2
More use of Tcl_NewWideIntObj(), and more internal use of (size_t), for bigger ranges.
Diffstat (limited to 'generic/tkScale.c')
-rw-r--r--generic/tkScale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkScale.c b/generic/tkScale.c
index 200b107..919d8d0 100644
--- a/generic/tkScale.c
+++ b/generic/tkScale.c
@@ -451,8 +451,8 @@ ScaleWidgetObjCmd(
y = scalePtr->horizTroughY + scalePtr->width/2
+ scalePtr->borderWidth;
}
- coords[0] = Tcl_NewIntObj(x);
- coords[1] = Tcl_NewIntObj(y);
+ coords[0] = Tcl_NewWideIntObj(x);
+ coords[1] = Tcl_NewWideIntObj(y);
Tcl_SetObjResult(interp, Tcl_NewListObj(2, coords));
break;
}