diff options
author | hobbs <hobbs> | 2001-08-23 18:20:50 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2001-08-23 18:20:50 (GMT) |
commit | d47a11a41d9e4135a144e498ff673ff43c5057d9 (patch) | |
tree | e95bc01518484622ad51ae701d0f9022d39b0a8e /generic/tclIOUtil.c | |
parent | f319c32167c2c52995fe53b438ef4bc34e9a4914 (diff) | |
download | tcl-d47a11a41d9e4135a144e498ff673ff43c5057d9.zip tcl-d47a11a41d9e4135a144e498ff673ff43c5057d9.tar.gz tcl-d47a11a41d9e4135a144e498ff673ff43c5057d9.tar.bz2 |
corrected minor compiler warnings
Diffstat (limited to 'generic/tclIOUtil.c')
-rw-r--r-- | generic/tclIOUtil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index d191758..d5fa64c 100644 --- a/generic/tclIOUtil.c +++ b/generic/tclIOUtil.c @@ -17,7 +17,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIOUtil.c,v 1.15 2001/08/23 17:37:08 vincentdarley Exp $ + * RCS: @(#) $Id: tclIOUtil.c,v 1.16 2001/08/23 18:20:50 hobbs Exp $ */ #include "tclInt.h" @@ -2680,7 +2680,7 @@ Tcl_FSJoinPath(listObj, elements) Tcl_AppendToObj(res, &separator, 1); length++; } - Tcl_SetObjLength(res, length + strlen(strElt)); + Tcl_SetObjLength(res, length + (int) strlen(strElt)); ptr = Tcl_GetString(res) + length; for (; *strElt != '\0'; strElt++) { @@ -2790,7 +2790,7 @@ GetPathType(pathObjPtr, filesystemPtrPtr, driveNameLengthPtr, driveNameRef) if (pathLen < len) { continue; } - if (strncmp(strVol, path, len) == 0) { + if (strncmp(strVol, path, (size_t) len) == 0) { type = TCL_PATH_ABSOLUTE; if (filesystemPtrPtr != NULL) { *filesystemPtrPtr = fsRecPtr->fsPtr; |