| 464 | } |
| 465 | |
| 466 | void UArray_copyItems_(UArray *self, const UArray *other) { |
| 467 | if (self->size != other->size) { |
| 468 | printf("UArray_copyItems_ error - arrays not of same size\n"); |
| 469 | exit(-1); |
| 470 | } |
| 471 | |
| 472 | if (self->itemType == other->itemType) { |
| 473 | UArray_copyData_(self, other); |
| 474 | } else { |
| 475 | DUARRAY_OP(UARRAY_BASICOP_TYPES, =, self, other); |
| 476 | } |
| 477 | |
| 478 | UArray_changed(self); |
| 479 | } |
| 480 | |
| 481 | void UArray_copyData_(UArray *self, const UArray *other) { |
| 482 | UArray_setSize_(self, UArray_sizeRequiredToContain_(self, other)); |
no test coverage detected