3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 14:13:23 +00:00

Fixed win32 troubles with f.readsome()

This commit is contained in:
Clifford Wolf 2014-10-11 11:36:22 +02:00
parent a32e067e5c
commit 8263f6a74a
6 changed files with 21 additions and 4 deletions

View file

@ -202,7 +202,7 @@ static void input_file(std::istream &f, std::string filename)
auto it = input_buffer.begin();
input_buffer.insert(it, "`file_push " + filename + "\n");
while ((rc = f.readsome(buffer, sizeof(buffer)-1)) > 0) {
while ((rc = readsome(f, buffer, sizeof(buffer)-1)) > 0) {
buffer[rc] = 0;
input_buffer.insert(it, buffer);
}