fix compiler error on non-ignored fgets

This commit is contained in:
Zeno Rogue committed 2026-11-07 13:06:29 +01:00
1 parent 4e5522c676
commit 1387a6b9db
1 file changed
+2 -2
+2 -2
View File
@@ -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) {