summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-02-16 08:30:40 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-02-16 08:30:40 (GMT)
commit48507f96a5df51bf8c2c599ccb132ccb2ea2bf12 (patch)
tree06cbe7447f7d501ae5be7be896302ea60aa01a2f /generic
parentd315baab70f48cdc5618152774cecd5ac3b5fa50 (diff)
downloadtk-48507f96a5df51bf8c2c599ccb132ccb2ea2bf12.zip
tk-48507f96a5df51bf8c2c599ccb132ccb2ea2bf12.tar.gz
tk-48507f96a5df51bf8c2c599ccb132ccb2ea2bf12.tar.bz2
Fix warning in tkEntry.c. More typecast cleanup
Diffstat (limited to 'generic')
-rw-r--r--generic/tkEntry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c
index 79e1d5f..3d7d056 100644
--- a/generic/tkEntry.c
+++ b/generic/tkEntry.c
@@ -1051,7 +1051,7 @@ DestroyEntry(
* Tk_FreeOptions handle all the standard option-related stuff.
*/
- ckfree(entryPtr->string);
+ ckfree((char *)entryPtr->string);
if (entryPtr->textVarName != NULL) {
Tcl_UntraceVar2(entryPtr->interp, entryPtr->textVarName,
NULL, TCL_GLOBAL_ONLY|TCL_TRACE_WRITES|TCL_TRACE_UNSETS,
@@ -3273,7 +3273,7 @@ EntryTextVarProc(
entryPtr->textVarName,
TCL_GLOBAL_ONLY|TCL_TRACE_WRITES|TCL_TRACE_UNSETS,
EntryTextVarProc, probe);
- if (probe == (void *)entryPtr) {
+ if (probe == entryPtr) {
break;
}
} while (probe);