Skip to content

Commit b2d5430

Browse files
Merge pull request #17 from lovasoa/patch-1
Fix file opening on windows
2 parents 5c2c22b + 8c930f9 commit b2d5430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decode.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ int main(int argc, char** argv) {
3232
return 1;
3333
}
3434

35-
std::ifstream in_file(argv[1]);
35+
std::ifstream in_file(argv[1], std::ifstream::binary);
3636
if (!in_file.good()) {
3737
printf("Failed to open input file.\n");
3838
return 1;

0 commit comments

Comments
 (0)