cii
cii copied to clipboard
Ch18 - Arbitrary Precision: AP_toint problem
AP_T x = AP_new(LONG_MIN);
long val = AP_toint(x); // The val is 0
AP_toint
turn LONG_MIN
to 0
. https://github.com/drh/cii/blob/master/src/ap.c#L323 can use without %
.
unsigned long u = XP_toint(x->ndigits, x->digits);