utils: open output file in binary mode
This commit is contained in:
parent
d17b7b3309
commit
3b7628882c
|
@ -7,7 +7,7 @@
|
|||
|
||||
bool dump_array_cf(const float complex *data, size_t n, float T, const char *filename)
|
||||
{
|
||||
FILE *f = fopen(filename, "w");
|
||||
FILE *f = fopen(filename, "wb");
|
||||
if(!f) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue