Fix some warnings with MSVS

for the test suite.
This commit is contained in:
Patrick Pelissier committed 2020-06-21 23:52:12 +02:00
1 parent 06a1590645
commit d27c448a94
12 files changed
+51 -51

No files matched your search

+5 -5
View File
@@ -195,7 +195,7 @@ static void test_uint_permut(void)
static void test_float(void)
{
M_LET(tree, FLOAT_OP) {
for(float f = -17.42; f < 17.42; f+=0.01)
for(float f = -17.42f; f < 17.42f; f+=0.01f)
rbtree_float_push (tree, f);
bool p = false;
float g;
@@ -214,12 +214,12 @@ static void test_io(void)
M_LET(str, STRING_OPLIST)
M_LET(tree1, tree2, UINT_OPLIST) {
// Empty one
FILE *f = fopen ("a-mrbtree.dat", "wt");
FILE *f = m_core_fopen ("a-mrbtree.dat", "wt");
if (!f) abort();
rbtree_uint_out_str(f, tree1);
fclose (f);
f = fopen ("a-mrbtree.dat", "rt");
f = m_core_fopen ("a-mrbtree.dat", "rt");
if (!f) abort();
bool b = rbtree_uint_in_str (tree2, f);
assert (b == true);
@@ -238,12 +238,12 @@ static void test_io(void)
for(unsigned int i = 0 ; i < 10; i++)
rbtree_uint_push(tree1, i);
f = fopen ("a-mrbtree.dat", "wt");
f = m_core_fopen ("a-mrbtree.dat", "wt");
if (!f) abort();
rbtree_uint_out_str(f, tree1);
fclose (f);
f = fopen ("a-mrbtree.dat", "rt");
f = m_core_fopen ("a-mrbtree.dat", "rt");
if (!f) abort();
b = rbtree_uint_in_str (tree2, f);
assert (b == true);