aboutsummaryrefslogtreecommitdiffstats
path: root/src/zseti.c
blob: c42ffd6ec5f7471df08af565464f8c6be25eabbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* See LICENSE file for copyright and license details. */
#include "internals"


void
zseti(z_t a, long long int b)
{
	if (b >= 0) {
		zsetu(a, (unsigned long long int)b);
	} else {
		zsetu(a, (unsigned long long int)-b);
		SET_SIGNUM(a, -1);
	}
}