Fixed minor gcc warnings
[libcds.git] / test / unit / set / test_set_nogc.h
index 8fbcbdfbb9c525c63070b26f366e0529ff1cccc2..ef4567c7fcb80b36d96dc1f5242f5bdbe7178a69 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_SET_NOGC_H
@@ -315,7 +315,7 @@ namespace cds_test {
 
                 it = s.contains( i.nKey );
                 ASSERT_TRUE( it != s.end() );
-                EXPECT_EQ( it->nFindCount, it->nKey );
+                EXPECT_EQ( it->nFindCount, static_cast<unsigned>( it->nKey ));
                 ASSERT_TRUE( s.contains( i ) != s.end() );
                 ASSERT_TRUE( s.contains( other_item( i.key() ), other_less() ) != s.end());
             }
@@ -329,7 +329,7 @@ namespace cds_test {
             }
 
             for ( auto it = s.cbegin(); it != s.cend(); ++it ) {
-                EXPECT_EQ( it->nFindCount, it->key() * 3 );
+                EXPECT_EQ( it->nFindCount, static_cast<unsigned>( it->key() * 3 ));
             }
 
             // clear