Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
TendTo committed Jul 15, 2024
1 parent a771eb5 commit b4959f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
7 changes: 0 additions & 7 deletions dlinear/util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,9 @@ dlinear_cc_library(
"Interval.h",
"RoundingModeGuard.hpp",
],
implementation_deps = [
":exception",
":math",
],
deps = [
":definitions",
":logging",
"//dlinear/libs:gmp",
"//dlinear/symbolic",
"//dlinear/symbolic:literal",
],
)

Expand Down
4 changes: 2 additions & 2 deletions dlinear/util/Box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Box::Box(const Config::LPSolver lp_solver)
switch (lp_solver) {
#ifdef DLINEAR_ENABLED_QSOPTEX
case Config::LPSolver::QSOPTEX:
ninfinity_ = -qsopt_ex::infinity();
infinity_ = qsopt_ex::infinity();
ninfinity_ = mpq_class{mpq_NINFTY};
infinity_ = mpq_class{mpq_INFTY};
break;
#endif
#ifdef DLINEAR_ENABLED_SOPLEX
Expand Down
8 changes: 7 additions & 1 deletion dlinear/util/Interval.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @file Interval.cpp
* @author dlinear (https://github.com/TendTo/dlinear)
* @copyright 2024 dlinear
* @licence Apache-2.0 license
*/
#include "Interval.h"

#include "dlinear/util/RoundingModeGuard.hpp"
Expand Down Expand Up @@ -101,4 +107,4 @@ Interval Interval::fromString(const std::string &s) {
return Interval{lb, ub};
}

} // namespace dlinear
} // namespace dlinear

0 comments on commit b4959f2

Please sign in to comment.