Skip to content

Commit cf1d890

Browse files
authored
Update tune.cpp
1 parent 97d8541 commit cf1d890

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎tune.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void Tune::make_option(OptionsMap *opts, const string &n, int v, const SetRange
6060

6161
opts->add(n, Option(v, r(v).first, r(v).second, on_tune));
6262
LastOption = &((*opts)[n]);
63-
auto &[a, b] = r(v);
63+
auto [a, b] = r(v);
6464
if (!(a <= v && v <= b)) {
6565
std::cerr << "wrong bounds, name: " << n << '\n';
6666
std::exit(1);
@@ -72,10 +72,10 @@ void Tune::make_option(OptionsMap *opts, const string &n, int v, const SetRange
7272
// or OpenBench
7373
<< "int" << ","
7474
#endif
75-
<< v << "," //
76-
<< r(v).first << "," //
77-
<< r(v).second << "," //
78-
<< (r(v).second - r(v).first) / 20.0 << "," //
75+
<< v << "," //
76+
<< a << "," //
77+
<< b << "," //
78+
<< (b - a) / 20.0 << "," //
7979
<< "0.0020" << std::endl;
8080
}
8181

0 commit comments

Comments
 (0)