Skip to content

Commit 75eb841

Browse files
committed
Update matio library to 1.5.30
1 parent 658c22d commit 75eb841

File tree

5 files changed

+1425
-1028
lines changed

5 files changed

+1425
-1028
lines changed

Modelica/Resources/C-Sources/ModelicaIO.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ int ModelicaIO_writeRealMatrix(_In_z_ const char* fileName,
353353
return 0;
354354
}
355355
} else {
356-
mat = Mat_Open(fileName, (int)MAT_ACC_RDWR | matv);
356+
const int mode = ((int)matv) | ((int)MAT_ACC_RDWR);
357+
mat = Mat_Open(fileName, mode);
357358
if (NULL == mat) {
358359
ModelicaFormatError("Not possible to open file \"%s\"\n", fileName);
359360
return 0;

0 commit comments

Comments
 (0)