We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c04d2a commit 6f8c73fCopy full SHA for 6f8c73f
src/libtorchaudio/sox/utils.cpp
@@ -195,7 +195,7 @@ torch::Tensor convert_to_tensor(
195
}
196
197
const std::string get_filetype(const std::string& path) {
198
- std::string ext = path.substr(path.find_last_of(".") + 1);
+ std::string ext = path.substr(path.find_last_of('.') + 1);
199
std::transform(ext.begin(), ext.end(), ext.begin(), ::tolower);
200
return ext;
201
0 commit comments