blob: 10ceb184d67d2026a4589ad8b9c86ba970a474d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* See LICENSE file for copyright and license details. */
#include "internals"
void
zset(z_t a, z_t b)
{
if (zzero(b)) {
SET_SIGNUM(a, 0);
} else {
if (a->alloced < b->alloced)
zahl_realloc(a, b->alloced);
a->sign = b->sign;
a->used = b->used;
zmemcpy(a->chars, b->chars, b->used);
}
}
|