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

GMP tests for mpz_inp_str fail #1221

Open
lzcunt opened this issue Jan 14, 2025 · 0 comments
Open

GMP tests for mpz_inp_str fail #1221

lzcunt opened this issue Jan 14, 2025 · 0 comments

Comments

@lzcunt
Copy link
Contributor

lzcunt commented Jan 14, 2025

Currently, all GMP test pass except these two:

tests/mpz/io.c:

mpz_inp_str nread doesn't match ftell
  nread  5
  ftell  6
FAIL io (exit status: 134)

tests/mpz/t-inp_str.c:

mpz_inp_str nread wrong
  inp          "0"
  base         10
  pre          0
  post         1
  got_nread    1
  ftell_nread  2
FAIL t-inp_str (exit status: 134)

Seemingly there is an off-by-one somewhere that causes ftell or mpz_inp_str's read bytes to be wrong.

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