Commit 947d1160 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed butecode loading on Win32

parent c3983cfd
......@@ -361,7 +361,7 @@ int main(int argc, char *argv[])
return usage(argv[0]);
// Load a program
std::ifstream programFile(programName.c_str());
std::ifstream programFile(programName.c_str(), std::ios::in|std::ios::binary);
if (!programFile.is_open()) {
std::cerr << "Can't open program file: " << programName << std::endl;
return 1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment