diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-04-23 09:55:01 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-04-23 09:55:01 (GMT) |
commit | 8c01d5fea4cbdd448a644bfaf18e9dfc96843b61 (patch) | |
tree | 38796a80f2a9ec50b88ff82ff70a61a03abd3ca2 /generic/tkObj.c | |
parent | 668875a4157628ad8e22c8873000773a5456a778 (diff) | |
download | tk-8c01d5fea4cbdd448a644bfaf18e9dfc96843b61.zip tk-8c01d5fea4cbdd448a644bfaf18e9dfc96843b61.tar.gz tk-8c01d5fea4cbdd448a644bfaf18e9dfc96843b61.tar.bz2 |
Add more implicit type-casts. Backported from 8.7
Diffstat (limited to 'generic/tkObj.c')
-rw-r--r-- | generic/tkObj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkObj.c b/generic/tkObj.c index db2e501..1552d11 100644 --- a/generic/tkObj.c +++ b/generic/tkObj.c @@ -934,8 +934,8 @@ DupWindowInternalRep( { WindowRep *oldPtr, *newPtr; - oldPtr = srcPtr->internalRep.twoPtrValue.ptr1; - newPtr = ckalloc(sizeof(WindowRep)); + oldPtr = (WindowRep *)srcPtr->internalRep.twoPtrValue.ptr1; + newPtr = (WindowRep *)ckalloc(sizeof(WindowRep)); newPtr->tkwin = oldPtr->tkwin; newPtr->mainPtr = oldPtr->mainPtr; newPtr->epoch = oldPtr->epoch; @@ -997,7 +997,7 @@ TkNewWindowObj( SetWindowFromAny(NULL, objPtr); - winPtr = objPtr->internalRep.twoPtrValue.ptr1; + winPtr = (WindowRep *)objPtr->internalRep.twoPtrValue.ptr1; winPtr->tkwin = tkwin; winPtr->mainPtr = mainPtr; winPtr->epoch = mainPtr->deletionEpoch; |