File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ TEST_F(AutoConfigTest, ConfigDefault) {
109
109
// because MyConfigurableClass is not actually in a context, which means Autowiring will not
110
110
// attempt to configure it.
111
111
MyConfigurableClass c;
112
- ASSERT_EQ (92999 , c.bUnsigned );
112
+ ASSERT_EQ (92999 , static_cast < uint64_t >( c.bUnsigned ) );
113
113
}
114
114
115
115
TEST_F (AutoConfigTest, String) {
@@ -139,7 +139,7 @@ TEST_F(AutoConfigTest, IntegerUnsigned) {
139
139
ASSERT_STREQ (" 10929" , strVal.c_str ());
140
140
141
141
autowiring::ConfigSet (" bUnsigned" , c, " 999" );
142
- ASSERT_EQ (c.bUnsigned , 999 ) << " Integer configuration value not assigned" ;
142
+ ASSERT_EQ (static_cast < uint64_t >( c.bUnsigned ) , 999 ) << " Integer configuration value not assigned" ;
143
143
ASSERT_ANY_THROW (autowiring::ConfigSet (" bUnsigned" , c, " -999" )) << " Incorrectly assigned as signed value to an unsigned field" ;
144
144
}
145
145
You can’t perform that action at this time.
0 commit comments