Skip to content

Commit 6a9ecc1

Browse files
committed
silence one comparison (fixes #1152)
1 parent f326eba commit 6a9ecc1

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2021-04-09 Dirk Eddelbuettel <[email protected]>
2+
3+
* inst/include/Rcpp/hash/IndexHash.h: Silence one comparison
4+
15
2021-03-22 Dirk Eddelbuettel <[email protected]>
26

37
* DESCRIPTION (Version, Date): Roll minor version

inst/include/Rcpp/hash/IndexHash.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// IndexHash.h: Rcpp R/C++ interface class library -- hashing utility, inspired
44
// from Simon's fastmatch package
55
//
6-
// Copyright (C) 2010, 2011 Simon Urbanek
7-
// Copyright (C) 2012 Dirk Eddelbuettel and Romain Francois
8-
// Copyright (C) 2014 Dirk Eddelbuettel, Romain Francois and Kevin Ushey
6+
// Copyright (C) 2010, 2011 Simon Urbanek
7+
// Copyright (C) 2012 - 2013 Dirk Eddelbuettel and Romain Francois
8+
// Copyright (C) 2014 - 2021 Dirk Eddelbuettel, Romain Francois and Kevin Ushey
99
//
1010
// This file is part of Rcpp.
1111
//
@@ -100,7 +100,7 @@ namespace Rcpp{
100100
}
101101

102102
inline bool contains(STORAGE val) const {
103-
return get_index(val) != NA_INTEGER ;
103+
return get_index(val) != static_cast<unsigned int>(NA_INTEGER);
104104
}
105105

106106
inline int size() const {
@@ -238,4 +238,3 @@ namespace Rcpp{
238238
} // Rcpp
239239

240240
#endif
241-

0 commit comments

Comments
 (0)