Commit a3aa029f authored by Ghislain MARY's avatar Ghislain MARY

Fix build for Windows 10.

parent 633e151d
......@@ -27,7 +27,7 @@ int main(int argc, char *argv[]) {
belcard_tester_init(NULL);
if (strstr(argv[0], ".libs")) {
int prefix_length = strstr(argv[0], ".libs") - argv[0] + 1;
int prefix_length = (int)(strstr(argv[0], ".libs") - argv[0]) + 1;
char prefix[200];
sprintf(prefix, "%s%.*s", argv[0][0] == '/' ? "" : "./", prefix_length, argv[0]);
bc_tester_set_resource_dir_prefix(prefix);
......
......@@ -75,7 +75,7 @@ static void vcards_parsing(void) {
BelCardParser *parser = new BelCardParser();
shared_ptr<BelCardList> belCards = parser->parse(vcards);
if (!BC_ASSERT_TRUE(belCards!=NULL)) return;
BC_ASSERT_EQUAL(belCards->getCards().size(), 2, unsigned, "%u");
BC_ASSERT_EQUAL((unsigned int)belCards->getCards().size(), 2, unsigned int, "%u");
string vcards2 = belCards->toString();
BC_ASSERT_EQUAL(vcards2.compare(vcards), 0, int, "%d");
......@@ -116,7 +116,7 @@ static void property_sort_using_pref_param(void) {
belCard->addImpp(impp2);
const list<shared_ptr<BelCardImpp>> imppList = belCard->getImpp();
BC_ASSERT_EQUAL(imppList.size(), 2, unsigned, "%u");
BC_ASSERT_EQUAL((unsigned int)imppList.size(), 2, unsigned int, "%u");
BC_ASSERT_TRUE(imppList.front() == impp2);
BC_ASSERT_TRUE(imppList.back() == impp1);
}
......
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