mirror of
https://github.com/mfontanini/libtins
synced 2026-01-27 04:11:35 +01:00
Fix compilation warnings on Windows x64.
This commit is contained in:
@@ -87,7 +87,7 @@ TEST_F(PPPoETest, ConstructorFromBuffer) {
|
||||
TEST_F(PPPoETest, StackedOnEthernet) {
|
||||
EthernetII eth = EthernetII() / PPPoE();
|
||||
PDU::serialization_type buffer = eth.serialize();
|
||||
EthernetII eth2(&buffer[0], buffer.size());
|
||||
EthernetII eth2(&buffer[0], (uint32_t)buffer.size());
|
||||
ASSERT_TRUE(eth2.find_pdu<PPPoE>() != NULL);
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ TEST_F(PPPoETest, StackedOnEthernetSerializationWithTags) {
|
||||
PPPoE pdu(expected_packet, sizeof(expected_packet));
|
||||
EthernetII eth = EthernetII() / pdu;
|
||||
PDU::serialization_type buffer = eth.serialize();
|
||||
EthernetII eth2(&buffer[0], buffer.size());
|
||||
EthernetII eth2(&buffer[0], (uint32_t)buffer.size());
|
||||
PPPoE* unserialized = eth2.find_pdu<PPPoE>();
|
||||
ASSERT_TRUE(unserialized != NULL);
|
||||
EXPECT_EQ(
|
||||
|
||||
Reference in New Issue
Block a user