Skip to content

Commit 8a5c31f

Browse files
author
lordoffox
committed
change read file with binary format
1 parent 43a47f6 commit 8a5c31f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adatac/parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class adl_file
149149
static FILE* open(std::string const& adl_file)
150150
{
151151
FILE* fd = nullptr;
152-
if (::fopen_s(&fd, adl_file.c_str(), "r") != 0)
152+
if (::fopen_s(&fd, adl_file.c_str(), "rb") != 0)
153153
{
154154
return nullptr;
155155
}

0 commit comments

Comments
 (0)