Skip to content

Commit

Permalink
changed identifier file to f, in order to avoid clash with struct Fil…
Browse files Browse the repository at this point in the history
…e, which may happen on case-insensitive platforms
  • Loading branch information
Stephan Schiffels committed May 1, 2015
1 parent 2adcdad commit c50cfbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions model/data.d
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ unittest {
// }

size_t getNrHaplotypesFromFile(string filename) {
auto file = File(filename, "r");
scope(exit) file.close();
auto line = file.readln();
auto f = File(filename, "r");
scope(exit) f.close();
auto line = f.readln();
line = line.strip();
// checkDataLine(line);
auto fields = line.strip().split();
Expand Down

0 comments on commit c50cfbe

Please sign in to comment.