diff options
author | patthoyts <patthoyts@noemail.net> | 2007-11-17 23:07:44 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@noemail.net> | 2007-11-17 23:07:44 (GMT) |
commit | f3846d34ad3f7fc63ce77987947d1a26ec1e4751 (patch) | |
tree | 23a7a36869acb014ae54c3af70058f4134ecac67 /generic/tkEntry.c | |
parent | 0020f03939052398207f5f12835d34ff47087def (diff) | |
download | tk-f3846d34ad3f7fc63ce77987947d1a26ec1e4751.zip tk-f3846d34ad3f7fc63ce77987947d1a26ec1e4751.tar.gz tk-f3846d34ad3f7fc63ce77987947d1a26ec1e4751.tar.bz2 |
Tidy up some variable types.
FossilOrigin-Name: dd028db17b62cc6010a55648c13919b524417c04
Diffstat (limited to 'generic/tkEntry.c')
-rw-r--r-- | generic/tkEntry.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c index ae0500c..30b525b 100644 --- a/generic/tkEntry.c +++ b/generic/tkEntry.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkEntry.c,v 1.45 2007/05/24 14:46:24 dkf Exp $ + * RCS: @(#) $Id: tkEntry.c,v 1.46 2007/11/17 23:07:45 patthoyts Exp $ */ #include "tkInt.h" @@ -2008,7 +2008,9 @@ InsertChars( char *value) /* New characters to add (NULL-terminated * string). */ { - int byteIndex, byteCount, oldChars, charsAdded, newByteCount; + ptrdiff_t byteIndex; + size_t byteCount, newByteCount; + int oldChars, charsAdded; CONST char *string; char *newStr; @@ -2021,7 +2023,7 @@ InsertChars( newByteCount = entryPtr->numBytes + byteCount + 1; newStr = (char *) ckalloc((unsigned) newByteCount); - memcpy(newStr, string, (size_t) byteIndex); + memcpy(newStr, string, byteIndex); strcpy(newStr + byteIndex, value); strcpy(newStr + byteIndex + byteCount, string + byteIndex); |