Skip to content

Commit 9c86084

Browse files
committed
Fix compile warning from cran
1 parent de27e22 commit 9c86084

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

cran-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ concaveman, Rcpp, and RcppEigen dependency in favor of cpp11
33

44
## revdepcheck results
55

6-
We checked 82 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
6+
We checked 107 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
77

88
* We saw 0 new problems
99
* We failed to check 0 packages

revdep/cran.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## revdepcheck results
22

3-
We checked 82 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
3+
We checked 107 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
44

55
* We saw 0 new problems
66
* We failed to check 0 packages

src/robust_predicate/expansion/mp_float.hpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,20 +135,21 @@
135135
indx_type _ii
136136
)
137137
{
138-
assert ( _ii < this->_size &&
139-
"expansion: index out of bounds") ;
138+
//assert ( _ii < this->_size &&
139+
// "expansion: index out of bounds") ;
140140

141-
return ( this->_xdat[_ii] ) ;
141+
return ( _ii < this->_size ? this->_xdat[_ii] : this->_xdat[0] ) ;
142142
}
143143

144144
__inline_call real_type const& operator[] (
145145
indx_type _ii
146146
) const
147147
{
148-
assert ( _ii < this->_size &&
149-
"expansion: index out of bounds") ;
150148

151-
return ( this->_xdat[_ii] ) ;
149+
//assert ( _ii < this->_size &&
150+
// "expansion: index out of bounds") ;
151+
152+
return ( _ii < this->_size ? this->_xdat[_ii] : this->_xdat[0]) ;
152153
}
153154

154155
public :

0 commit comments

Comments
 (0)