Diff
Not logged in

Differences From Artifact [c34bb01f8c]:

To Artifact [07e345f402]:


305
306
307
308
309
310
311
312


313
314
315
316
317
318
319
320
321
322
305
306
307
308
309
310
311

312
313
314
315

316
317
318
319
320
321
322







-
+
+


-








    if (length < 0) {
	length = 0;
    }
    byteArrayPtr = ckalloc(BYTEARRAY_SIZE(length));
    byteArrayPtr->used = length;
    byteArrayPtr->allocated = length;
    if (length && bytes) {

    if ((length != NULL) && (bytes > 0)) {
	memcpy(byteArrayPtr->bytes, bytes, (size_t) length);
    }

    objPtr->typePtr = &tclByteArrayType;
    SET_BYTEARRAY(objPtr, byteArrayPtr);
}

/*
 *----------------------------------------------------------------------
 *