Skip to content

Fix fprint functions writing to stdout instead of the given stream#2587

Merged
albinahlback merged 1 commit intoflintlib:mainfrom
edgarcosta:fix/nmod_mat_fprint_pretty_stream
Mar 2, 2026
Merged

Fix fprint functions writing to stdout instead of the given stream#2587
albinahlback merged 1 commit intoflintlib:mainfrom
edgarcosta:fix/nmod_mat_fprint_pretty_stream

Conversation

@edgarcosta
Copy link
Copy Markdown
Member

Fixes #2585

nmod_mat_fprint_pretty and _nmod_vec_fprint_pretty used flint_printf
(which writes to stdout) instead of flint_fprintf(file, ...) for the
matrix/vector body, so only the header went to the correct stream.

Fixes flintlib#2585
@albinahlback
Copy link
Copy Markdown
Collaborator

Great Edgar!

@albinahlback albinahlback merged commit 040d9c4 into flintlib:main Mar 2, 2026
12 checks passed
@edgarcosta
Copy link
Copy Markdown
Member Author

I was just trying to prove that I am not dead :)

@edgarcosta
Copy link
Copy Markdown
Member Author

Oh, I also didn't see your PR. sorry

@albinahlback
Copy link
Copy Markdown
Collaborator

Oh, I also didn't see your PR. sorry

haha, don't worry, I didn't catch the nmod_vec stuff

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

Successfully merging this pull request may close these issues.

nmod_mat_fprint_pretty only prints the header to the correct stream

2 participants