mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Use binary mode for reading/writing bytecode files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19751 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
695c9bdbd0
commit
5fb6ed4ae6
14 files changed
+87
-44
No files matched your search
@@ -436,7 +436,9 @@ void doExtract() {
|
||||
}
|
||||
|
||||
// Open up a file stream for writing
|
||||
std::ofstream file(I->getPath().c_str());
|
||||
std::ios::openmode io_mode = std::ios::out | std::ios::trunc |
|
||||
std::ios::binary;
|
||||
std::ofstream file(I->getPath().c_str(), io_mode);
|
||||
|
||||
// Get the data and its length
|
||||
const char* data = reinterpret_cast<const char*>(I->getData());
|
||||
|
||||
Reference in new issue
Block a user