Skip to content

Ch18 - Arbitrary Precision: AP_toint problem #15

@ylme

Description

@ylme
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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions