mirror of
https://github.com/Z3Prover/z3
synced 2025-08-14 06:45:25 +00:00
Use const& to reduce copies.
This commit is contained in:
parent
62de187d02
commit
a12de12515
5 changed files with 6 additions and 6 deletions
|
@ -70,7 +70,7 @@ func_decl * pb_decl_plugin::mk_func_decl(decl_kind k, unsigned num_parameters, p
|
|||
}
|
||||
else if (p.is_rational()) {
|
||||
// HACK: ast pretty printer does not work with rationals.
|
||||
rational r = p.get_rational();
|
||||
rational const& r = p.get_rational();
|
||||
if (r.is_int32()) {
|
||||
params.push_back(parameter(r.get_int32()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue