Commit 9a4e43d1 authored by Julien Wadel's avatar Julien Wadel
Browse files

- Cast on assert to remove warning on x64

parent 1705b77f
......@@ -108,7 +108,7 @@ static void aliases_rules(void) {
shared_ptr<DebugElement> elem = parser->parseInput("sip-message", sipmessage, &pos);
BC_ASSERT_TRUE(elem != nullptr);
if (!elem) return;
BC_ASSERT_EQUAL(pos, sipmessage.size(), int, "%i");
BC_ASSERT_EQUAL((int)pos, (int)sipmessage.size(), int, "%i");
BC_ASSERT_TRUE(sipmessage == elem->getValue());
list<shared_ptr<DebugElement>> headerNames;
elem->findChildren("header-name", headerNames);
......
......@@ -109,7 +109,7 @@ static void parser_connected_to_c_functions(void) {
BC_ASSERT_PTR_NOT_NULL(elem);
if (!elem) return;
BC_ASSERT_EQUAL(pos, sipmessage.size(), int, "%i");
BC_ASSERT_EQUAL((int)pos, (int)sipmessage.size(), int, "%i");
sip_response_t *resp = (sip_response_t*)elem;
sip_uri_t *from = resp->from;
......@@ -268,7 +268,7 @@ static void parser_with_inheritance(void){
BC_ASSERT_TRUE(elem != nullptr);
if (!elem) return;
BC_ASSERT_EQUAL(pos, sipmessage.size(), int, "%i");
BC_ASSERT_EQUAL(pos, sipmessage.size(), size_t, "%zu");
shared_ptr<SipRequest> request = dynamic_pointer_cast<SipRequest>(elem);
BC_ASSERT_TRUE(request != nullptr);
if (!request) return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment