Skip to content

mp_rat_read_cstring handles whitespace inconsistently  #57

@lhf

Description

@lhf

mp_rat_read_cstring handles whitespace inconsistently: it accepts " 123 / 46" but not " 123 ".

This happens because mp_int_read_cstring raises an error at trailing whitespace.

I assume mp_int_read_cstring tries to copy the behavior of strtol, but should it?

I suggest mp_int_read_cstring skip trailing whitespace.

Thanks for your work on imath.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions