Skip to content

Commit 43ab77e

Browse files
committed
Correct long int overflow in decimal const parsing in btor2 frontend
1 parent c586805 commit 43ab77e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vwn/btor2_frontend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ void Btor2Frontend::get_node(NODE_INFO& info, InstL& args) {
514514

515515
mpz_t mpz_mask;
516516
mpz_init(mpz_mask);
517-
mpz_set_si(mpz_mask, strtol(snum.c_str(), NULL, 10));
517+
mpz_set_str(mpz_mask, snum.c_str(), 10);
518518
mpz_class t_mpzc(mpz_mask);
519519
string str_num = t_mpzc.get_str(2);
520520

0 commit comments

Comments
 (0)