No need to dynamic_cast as the return type is already correct

This commit is contained in:
Marius Kintel 2016-07-22 12:12:40 -04:00
parent e8ee266f3c
commit f4d9f50a32

View file

@ -106,7 +106,7 @@ bool ModuleCache::evaluate(const std::string &filename, FileModule *&module)
FileModule *oldmodule = lib_mod;
fs::path pathname = fs::path(filename);
lib_mod = dynamic_cast<FileModule*>(parse(textbuf.str().c_str(), pathname, false));
lib_mod = parse(textbuf.str().c_str(), pathname, false);
PRINTDB(" compiled module: %p", lib_mod);
// We defer deletion so we can ensure that the new module won't