From 0900f426bd5dfc7335a664daccd8d35959255080 Mon Sep 17 00:00:00 2001 From: pooryorick Date: Thu, 13 Jul 2023 12:06:14 +0000 Subject: Remove incorrect lines that were added to SetDuplicatePureObj(). SetDuplicatePureObj() is specifically not about preserving immutable string value semantics from the orginal object to the new object. --- generic/tclObj.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/generic/tclObj.c b/generic/tclObj.c index 8e6b5bb..784162e 100644 --- a/generic/tclObj.c +++ b/generic/tclObj.c @@ -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)) { -- cgit v0.12