Fixed minor gcc warnings
[libcds.git] / test / unit / set / test_feldman_hashset_rcu.h
index b5afb6af742a363c31bbd8cf50bdc76cecb04563..957d9ff8d3b44d871d4501725c13dc5e71e603cf 100644 (file)
@@ -5,7 +5,7 @@
 
     Source code repo: http://github.com/khizmax/libcds/
     Download: http://sourceforge.net/projects/libcds/files/
-    
+
     Redistribution and use in source and binary forms, with or without
     modification, are permitted provided that the following conditions are met:
 
@@ -25,7 +25,7 @@
     SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
     CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.     
+    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
 #ifndef CDSUNIT_SET_TEST_FELDMAN_HASHSET_RCU_H
@@ -88,7 +88,7 @@ namespace {
                 }
 
                 for ( auto it = s.cbegin(); it != s.cend(); ++it ) {
-                    EXPECT_EQ( it->nFindCount, it->key() * 3 );
+                    EXPECT_EQ( it->nFindCount, static_cast<size_t>( it->key() * 3 ));
                 }
 
                 for ( auto it = s.rbegin(); it != s.rend(); ++it ) {
@@ -96,7 +96,7 @@ namespace {
                 }
 
                 for ( auto it = s.crbegin(); it != s.crend(); ++it ) {
-                    EXPECT_EQ( it->nFindCount, it->key() * 2 );
+                    EXPECT_EQ( it->nFindCount, static_cast<size_t>( it->key() * 2 ));
                 }
             }