Skip to content

Commit

Permalink
FIX compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
orlarey committed Mar 5, 2024
1 parent 0b42e8b commit 4848339
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
14 changes: 8 additions & 6 deletions interval/intervalAtanh.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* Copyright 2023 Yann ORLAREY
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -27,12 +27,14 @@ namespace itv {
// interval Atanh(const interval& x) const;
// void testAtanh() const;

static const interval domain(std::nexttoward(-1, 0), std::nexttoward(1, 0)); // interval ]-1,1[

interval interval_algebra::Atanh(const interval& x) const
{
const interval domain{std::nexttoward(-1, 0), std::nexttoward(1, 0)}; // interval ]-1,1[

interval i = intersection(domain, x);
if (i.isEmpty()) return i;
if (i.isEmpty()) {
return i;
}
return {atanh(i.lo()), atanh(i.hi())};
}

Expand Down
7 changes: 4 additions & 3 deletions interval/intervalLabel.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
/* Copyright 2023 Yann ORLAREY
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <string>

#include "interval_algebra.hh"
#include "interval_def.hh"

Expand Down

0 comments on commit 4848339

Please sign in to comment.