diff options
author | hobbs <hobbs@noemail.net> | 2000-08-07 21:33:01 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2000-08-07 21:33:01 (GMT) |
commit | 997ea5279b0d42d28c8ebc73ec05158e7070e32d (patch) | |
tree | 37c778a04c7f18ea11abd40cea44b1702fa22b66 /win | |
parent | bfef0b4274992ceab37d94ce82a8283388d4a634 (diff) | |
download | tcl-997ea5279b0d42d28c8ebc73ec05158e7070e32d.zip tcl-997ea5279b0d42d28c8ebc73ec05158e7070e32d.tar.gz tcl-997ea5279b0d42d28c8ebc73ec05158e7070e32d.tar.bz2 |
* generic/tclEnv.c: cast cleanup [Bug: 5624]
* win/tclWinFCmd.c: cast cleanup [Bug: 5627]
FossilOrigin-Name: bd25ec302199049de37b4e32c7528bf46dfc34ae
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinFCmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/win/tclWinFCmd.c b/win/tclWinFCmd.c index 1597583..97eeacb 100644 --- a/win/tclWinFCmd.c +++ b/win/tclWinFCmd.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinFCmd.c,v 1.7 1999/12/09 14:44:11 hobbs Exp $ + * RCS: @(#) $Id: tclWinFCmd.c,v 1.7.2.1 2000/08/07 21:33:02 hobbs Exp $ */ #include "tclWinInt.h" @@ -237,7 +237,7 @@ DoRenameFile( src = Tcl_WinTCharToUtf((TCHAR *) nativeSrcPath, -1, &srcString); dst = Tcl_WinTCharToUtf((TCHAR *) nativeDstPath, -1, &dstString); - if (strncmp(src, dst, Tcl_DStringLength(&srcString)) == 0) { + if (strncmp(src, dst, (size_t) Tcl_DStringLength(&srcString)) == 0) { /* * Trying to move a directory into itself. */ @@ -658,7 +658,7 @@ static int DoCreateDirectory( Tcl_DString *pathPtr) /* Pathname of directory to create (native). */ { - int error; + DWORD error; CONST TCHAR *nativePath; nativePath = (TCHAR *) Tcl_DStringValue(pathPtr); @@ -1284,7 +1284,7 @@ GetWinFileAttributes( return TCL_ERROR; } - *attributePtrPtr = Tcl_NewBooleanObj(result & attributeArray[objIndex]); + *attributePtrPtr = Tcl_NewBooleanObj((int) (result & attributeArray[objIndex])); return TCL_OK; } @@ -1422,7 +1422,7 @@ ConvertFileNameFormat( */ Tcl_WinTCharToUtf(nativeName, -1, &ds); - newv[i] = ckalloc(Tcl_DStringLength(&ds) + 1); + newv[i] = ckalloc((unsigned int) (Tcl_DStringLength(&ds) + 1)); lstrcpyA(newv[i], Tcl_DStringValue(&ds)); Tcl_DStringFree(&ds); FindClose(handle); |