diff options
author | stanton <stanton@noemail.net> | 1999-05-03 19:19:02 (GMT) |
---|---|---|
committer | stanton <stanton@noemail.net> | 1999-05-03 19:19:02 (GMT) |
commit | c36f583446c02424381faff1e0ec4a729156f7e1 (patch) | |
tree | aa7b6cb1593cd98967663f168531c6770b566c18 /generic/tclBinary.c | |
parent | 8d8f443be6ff1a986d94c12646c125300249dc61 (diff) | |
download | tcl-c36f583446c02424381faff1e0ec4a729156f7e1.zip tcl-c36f583446c02424381faff1e0ec4a729156f7e1.tar.gz tcl-c36f583446c02424381faff1e0ec4a729156f7e1.tar.bz2 |
* tests/binary.test:
* generic/tclBinary.c (DupByteArrayInternalRep): Fixed bug where
type was not being set in duplicated object.
FossilOrigin-Name: 23b030de278fdb69fa845a975c49a0981ed6b19a
Diffstat (limited to 'generic/tclBinary.c')
-rw-r--r-- | generic/tclBinary.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c index 5156465..4c55c40 100644 --- a/generic/tclBinary.c +++ b/generic/tclBinary.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBinary.c,v 1.5 1999/04/16 00:46:42 stanton Exp $ + * RCS: @(#) $Id: tclBinary.c,v 1.6 1999/05/03 19:19:03 stanton Exp $ */ #include <math.h> @@ -457,6 +457,8 @@ DupByteArrayInternalRep(srcPtr, copyPtr) memcpy((VOID *) copyArrayPtr->bytes, (VOID *) srcArrayPtr->bytes, (size_t) length); SET_BYTEARRAY(copyPtr, copyArrayPtr); + + copyPtr->typePtr = &tclByteArrayType; } /* |