diff options
| author | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-07-13 12:06:14 (GMT) |
|---|---|---|
| committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-07-13 12:06:14 (GMT) |
| commit | 0900f426bd5dfc7335a664daccd8d35959255080 (patch) | |
| tree | 0950c55dfbbac0a9648e6bea9b1311549a298748 | |
| parent | 7709859190fd68e33782ed1f58183af226b3898c (diff) | |
| download | tcl-0900f426bd5dfc7335a664daccd8d35959255080.zip tcl-0900f426bd5dfc7335a664daccd8d35959255080.tar.gz tcl-0900f426bd5dfc7335a664daccd8d35959255080.tar.bz2 | |
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.
| -rw-r--r-- | generic/tclObj.c | 6 |
1 files changed, 0 insertions, 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)) { |
