summaryrefslogtreecommitdiffstats
path: root/generic/tclOODefineCmds.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-24 20:10:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-24 20:10:25 (GMT)
commitf786cb097f2b4dedaf17c38b8246e76df1a73ce5 (patch)
tree44800cd8681e698777665467b8e06d5b2432d9df /generic/tclOODefineCmds.c
parent5a02d5db9cec007d16a60b24bd8cd0b1912d123f (diff)
downloadtcl-f786cb097f2b4dedaf17c38b8246e76df1a73ce5.zip
tcl-f786cb097f2b4dedaf17c38b8246e76df1a73ce5.tar.gz
tcl-f786cb097f2b4dedaf17c38b8246e76df1a73ce5.tar.bz2
Another round of int -> size_t modifications, so strings > 2Gb are handled correctly on 64-bit platforms.
Diffstat (limited to 'generic/tclOODefineCmds.c')
-rw-r--r--generic/tclOODefineCmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclOODefineCmds.c b/generic/tclOODefineCmds.c
index 6caaa81..28ea4b5 100644
--- a/generic/tclOODefineCmds.c
+++ b/generic/tclOODefineCmds.c
@@ -689,7 +689,7 @@ TclOOUnknownDefinition(
Namespace *nsPtr = (Namespace *) Tcl_GetCurrentNamespace(interp);
Tcl_HashSearch search;
Tcl_HashEntry *hPtr;
- int soughtLen;
+ size_t soughtLen;
const char *soughtStr, *matchedStr = NULL;
if (objc < 2) {
@@ -762,7 +762,7 @@ FindCommand(
Tcl_Obj *stringObj,
Tcl_Namespace *const namespacePtr)
{
- int length;
+ size_t length;
const char *nameStr, *string = TclGetStringFromObj(stringObj, &length);
register Namespace *const nsPtr = (Namespace *) namespacePtr;
FOREACH_HASH_DECLS;
@@ -1514,7 +1514,7 @@ TclOODefineConstructorObjCmd(
Object *oPtr;
Class *clsPtr;
Tcl_Method method;
- int bodyLength;
+ size_t bodyLength;
if (objc != 3) {
Tcl_WrongNumArgs(interp, 1, objv, "arguments body");
@@ -1725,7 +1725,7 @@ TclOODefineDestructorObjCmd(
Object *oPtr;
Class *clsPtr;
Tcl_Method method;
- int bodyLength;
+ size_t bodyLength;
if (objc != 2) {
Tcl_WrongNumArgs(interp, 1, objv, "body");