diff options
author | dgp <dgp@users.sourceforge.net> | 2002-01-26 01:10:08 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2002-01-26 01:10:08 (GMT) |
commit | 107d41756017e763fb66994fb0ba6072b20a7d2b (patch) | |
tree | e98bf2d4819a5270b97f764736441c86b9eb51e3 /generic/tclStringObj.c | |
parent | 727dc02ba3e05c4df81068bc3fd0ac3a8c98328b (diff) | |
download | tcl-107d41756017e763fb66994fb0ba6072b20a7d2b.zip tcl-107d41756017e763fb66994fb0ba6072b20a7d2b.tar.gz tcl-107d41756017e763fb66994fb0ba6072b20a7d2b.tar.bz2 |
* Sought out and eliminated instances of CONST-casting that are no
longer needed after the TIP 27 effort.
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r-- | generic/tclStringObj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c index 659ef41..c462565 100644 --- a/generic/tclStringObj.c +++ b/generic/tclStringObj.c @@ -33,7 +33,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclStringObj.c,v 1.23 2002/01/08 17:14:38 dgp Exp $ */ + * RCS: @(#) $Id: tclStringObj.c,v 1.24 2002/01/26 01:10:08 dgp Exp $ */ #include "tclInt.h" @@ -1221,7 +1221,7 @@ AppendUnicodeToUtfRep(objPtr, unicode, numChars) int numChars; /* Number of chars of "unicode" to convert. */ { Tcl_DString dsPtr; - char *bytes; + CONST char *bytes; if (numChars < 0) { numChars = 0; @@ -1234,7 +1234,7 @@ AppendUnicodeToUtfRep(objPtr, unicode, numChars) } Tcl_DStringInit(&dsPtr); - bytes = (char *)Tcl_UniCharToUtfDString(unicode, numChars, &dsPtr); + bytes = Tcl_UniCharToUtfDString(unicode, numChars, &dsPtr); AppendUtfToUtfRep(objPtr, bytes, Tcl_DStringLength(&dsPtr)); Tcl_DStringFree(&dsPtr); } |