Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ch18 - Arbitrary Precision: AP_toint problem #15

Open
ylme opened this issue Nov 5, 2019 · 0 comments
Open

Ch18 - Arbitrary Precision: AP_toint problem #15

ylme opened this issue Nov 5, 2019 · 0 comments

Comments

@ylme
Copy link

ylme commented Nov 5, 2019

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant