Skip to content

Commit

Permalink
remove use of register keyword
Browse files Browse the repository at this point in the history
- not allowed in ISO C++17
  • Loading branch information
svigerske committed Dec 21, 2023
1 parent f705b23 commit 7990ca3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Osi/test/OsiTestSolver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
#endif

template <class T> static inline T
VolMax(register const T x, register const T y) {
VolMax(const T x, const T y) {
return ((x) > (y)) ? (x) : (y);
}

template <class T> static inline T
VolAbs(register const T x) {
VolAbs(const T x) {
return ((x) > 0) ? (x) : -(x);
}

Expand Down Expand Up @@ -502,7 +502,7 @@ class VOL_alpha_factor {
const double alpha) {
if (alpha < parm.alphamin)
return 1.0;
register const double ll = VolAbs(lcost);
const double ll = VolAbs(lcost);
const double x = ll > 10 ? (lcost-lastvalue)/ll : (lcost-lastvalue);
lastvalue = lcost;
return (x <= 0.01) ? parm.alphafactor : 1.0;
Expand Down

0 comments on commit 7990ca3

Please sign in to comment.