Explorar el Código

Improve unit tests

bel hace 8 años
padre
commit
48f210ec2c
Se han modificado 1 ficheros con 1 adiciones y 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);
 }