mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-25 16:07:10 +00:00
fix compiler error on non-ignored fgets
This commit is contained in:
1 parent
4e5522c676
commit
1387a6b9db
1 file changed
+2
-2
@@ -65,7 +65,7 @@ void read_edgelist(const string& fname) {
|
||||
if(!f.f) return file_error(fname);
|
||||
|
||||
char buf[1000];
|
||||
for(int i=0; i<nodes_skiplines; i++) fgets(buf, 1000, f.f);
|
||||
for(int i=0; i<nodes_skiplines; i++) hr::ignore(fgets(buf, 1000, f.f));
|
||||
|
||||
while(true) {
|
||||
int i = rogueviz::readLabel(f);
|
||||
@@ -81,7 +81,7 @@ void read_edgelist(const string& fname) {
|
||||
set<pair<int, int>> edgesets;
|
||||
|
||||
char buf[1000];
|
||||
for(int i=0; i<skiplines; i++) fgets(buf, 1000, f.f);
|
||||
for(int i=0; i<skiplines; i++) hr::ignore(fgets(buf, 1000, f.f));
|
||||
|
||||
shstream s1;
|
||||
while(true) {
|
||||
|
||||
Reference in new issue
Block a user