Skip to content

Commit

Permalink
tovec
Browse files Browse the repository at this point in the history
  • Loading branch information
wjblanke committed Oct 10, 2024
1 parent 38715bd commit e1d0d57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/integer_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ struct integer {

size_t count;
mpz_export(res.data(), &count, -1, 8, 0, 0, impl);
//res.resize(count);
if (count == 0)
count = 1;

res.resize(count);

return res;
}
Expand Down

0 comments on commit e1d0d57

Please sign in to comment.