mne-tools / mne-cpp

MNE-CPP: A Framework for Electrophysiology
https://mne-cpp.org/
BSD 3-Clause "New" or "Revised" License
151 stars 137 forks source link

improve EOF comparison #961

Open maddin200 opened 1 year ago

maddin200 commented 1 year ago

/src/libraries/mne/c/mne_surface_or_volume.cpp line 3449 Code: printf("Triangle file : "); for (c = fgetc(fp); c != '\n'; c = fgetc(fp)) { if (c == EOF) { // <-- better use int variable