Skip to content

Commit e1d0d57

Browse files
committed
tovec
1 parent 38715bd commit e1d0d57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/integer_common.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,10 @@ struct integer {
196196

197197
size_t count;
198198
mpz_export(res.data(), &count, -1, 8, 0, 0, impl);
199-
//res.resize(count);
199+
if (count == 0)
200+
count = 1;
201+
202+
res.resize(count);
200203

201204
return res;
202205
}

0 commit comments

Comments
 (0)