Skip to content

Commit

Permalink
Remove incorrect lines that were added to SetDuplicatePureObj().
Browse files Browse the repository at this point in the history
SetDuplicatePureObj() is specifically not about preserving immutable string
value semantics from the orginal object to the new object.
  • Loading branch information
pooryorick committed Jul 13, 2023
1 parent 8984989 commit 6bcf9e5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions generic/tclObj.c
Original file line number Diff line number Diff line change
Expand Up @@ -1653,18 +1653,12 @@ int SetDuplicatePureObj(
*
* Perhaps in the future this can be remedied and this special treatment
* removed.
*
* Similar problem with the integer (0x0A vs 10), double (1e-1 vs 0.1) and
* index types ("coord" vs "coords", see bug [a34733451b])
*/


if (bytes && (dupPtr->typePtr == NULL
|| dupPtr->typePtr->updateStringProc == NULL
|| useTypePtr == &tclStringType
|| useTypePtr == &tclDoubleType
|| useTypePtr == &tclIntType
|| useTypePtr == &tclIndexType
)
) {
if (!TclAttemptInitStringRep(dupPtr, bytes, objPtr->length)) {
Expand Down

0 comments on commit 6bcf9e5

Please sign in to comment.