diff options
author | apnadkarni <apnmbx-wits@yahoo.com> | 2023-04-01 11:35:49 (GMT) |
---|---|---|
committer | apnadkarni <apnmbx-wits@yahoo.com> | 2023-04-01 11:35:49 (GMT) |
commit | d9bef75f08c6f69d631963242bdd1b887f8cb093 (patch) | |
tree | e036023df26820b6271816bb5e275b80fd1ac054 /unix | |
parent | baa549af6a4cd6b4caf71c2f0861ee682cc151d3 (diff) | |
download | tcl-d9bef75f08c6f69d631963242bdd1b887f8cb093.zip tcl-d9bef75f08c6f69d631963242bdd1b887f8cb093.tar.gz tcl-d9bef75f08c6f69d631963242bdd1b887f8cb093.tar.bz2 |
Fix gcc warnings from prior 9.0 merge
Diffstat (limited to 'unix')
-rw-r--r-- | unix/dltest/pkgt.c | 10 | ||||
-rw-r--r-- | unix/dltest/pkgua.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/unix/dltest/pkgt.c b/unix/dltest/pkgt.c index 77c2915..7a32c35 100644 --- a/unix/dltest/pkgt.c +++ b/unix/dltest/pkgt.c @@ -16,10 +16,10 @@ static int TraceProc2 ( void *clientData, Tcl_Interp *interp, - size_t level, + Tcl_Size level, const char *command, Tcl_Command commandInfo, - size_t objc, + Tcl_Size objc, struct Tcl_Obj *const *objv) { (void)clientData; @@ -55,12 +55,12 @@ static int Pkgt_EqObjCmd2( void *dummy, /* Not used. */ Tcl_Interp *interp, /* Current interpreter. */ - size_t objc, /* Number of arguments. */ + Tcl_Size objc, /* Number of arguments. */ Tcl_Obj *const objv[]) /* Argument objects. */ { Tcl_WideInt result; const char *str1, *str2; - size_t len1, len2; + Tcl_Size len1, len2; (void)dummy; if (objc != 3) { @@ -71,7 +71,7 @@ Pkgt_EqObjCmd2( str1 = Tcl_GetStringFromObj(objv[1], &len1); str2 = Tcl_GetStringFromObj(objv[2], &len2); if (len1 == len2) { - result = (Tcl_UtfNcmp(str1, str2, len1) == 0); + result = (Tcl_UtfNcmp(str1, str2, (size_t) len1) == 0); } else { result = 0; } diff --git a/unix/dltest/pkgua.c b/unix/dltest/pkgua.c index b14fca8..92d3cc9 100644 --- a/unix/dltest/pkgua.c +++ b/unix/dltest/pkgua.c @@ -138,7 +138,7 @@ PkguaEqObjCmd( str1 = Tcl_GetStringFromObj(objv[1], &len1); str2 = Tcl_GetStringFromObj(objv[2], &len2); if (len1 == len2) { - result = (Tcl_UtfNcmp(str1, str2, len1) == 0); + result = (Tcl_UtfNcmp(str1, str2, (size_t) len1) == 0); } else { result = 0; } |