Merge pull request #164 from mparisi20/master

fix bug in calcrom get_files function
This commit is contained in:
Max 2021-01-29 15:01:07 -05:00 committed by GitHub
commit f8eea17818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ get_files(const char *fpath, const struct stat *sb,
if (tflag == FTW_F) {
string fpath_s(fpath);
string ext = fpath_s.substr(fpath_s.rfind('.'), 4);
if (ext == ".c" || ext == ".cpp" || ".s")
if (ext == ".c" || ext == ".cpp" || ext == ".s")
files.push_back(fpath_s);
}
return 0;