mirror of
https://github.com/pret/pokerevo.git
synced 2026-03-21 17:34:12 -05:00
fix bug in calcrom get_files function
This commit is contained in:
parent
892c994fee
commit
984748ba7e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user