Explorar o código

Improve unit tests

bel %!s(int64=8) %!d(string=hai) anos
pai
achega
48f210ec2c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      test/public_func.c

+ 1 - 1
test/public_func.c

@@ -110,7 +110,7 @@ START_TEST(test_mg_version)
 	ck_assert_ptr_ne(buf, NULL);
 	ret = mg_get_system_info(buf, len + 1);
 	ck_assert_int_eq(len, ret);
-	ret = strlen(buf);
+	ret = (int)strlen(buf);
 	ck_assert_int_eq(len, ret);
 	free(buf);
 }