Fix some warnings with MSVS
for the test suite.
This commit is contained in:
1 parent
06a1590645
commit
d27c448a94
12 files changed
+51
-51
No files matched your search
+4
-4
@@ -276,12 +276,12 @@ static void test_io(void)
|
||||
M_LET(z, TESTOBJ_OPLIST)
|
||||
M_LET(str, STRING_OPLIST) {
|
||||
// Test empty
|
||||
FILE *f = fopen ("a-marray.dat", "wt");
|
||||
FILE *f = m_core_fopen ("a-marray.dat", "wt");
|
||||
if (!f) abort();
|
||||
deque_mpz_out_str(f, d1);
|
||||
fclose (f);
|
||||
|
||||
f = fopen ("a-marray.dat", "rt");
|
||||
f = m_core_fopen ("a-marray.dat", "rt");
|
||||
if (!f) abort();
|
||||
bool b = deque_mpz_in_str (d2, f);
|
||||
assert (b == true);
|
||||
@@ -294,12 +294,12 @@ static void test_io(void)
|
||||
deque_mpz_push_back (d1, z);
|
||||
}
|
||||
|
||||
f = fopen ("a-marray.dat", "wt");
|
||||
f = m_core_fopen ("a-marray.dat", "wt");
|
||||
if (!f) abort();
|
||||
deque_mpz_out_str(f, d1);
|
||||
fclose (f);
|
||||
|
||||
f = fopen ("a-marray.dat", "rt");
|
||||
f = m_core_fopen ("a-marray.dat", "rt");
|
||||
if (!f) abort();
|
||||
b = deque_mpz_in_str (d2, f);
|
||||
assert (b == true);
|
||||
|
||||
Reference in new issue
Block a user